Click to See Complete Forum and Search --> : get_text problem


ravash5000
June 14th, 2002, 11:34 AM
Take a look at this code, where p_list is a nodelist

BSTR Ext_Data_Tag;
p_list->get_item(0, &_It);
_It->get_text(&Ext_Data_Tag);
ofstream ab_("ab.txt");
ab_ << (char*)Ext_Data_Tag<< endl;
ab_.close();

When I take a look at ab.txt, only the first letter of the data shows up in the file, not all of it. Does anybody know what the problem is??

ravash5000
June 15th, 2002, 01:05 PM
never mind. solved the problem using ->firstchild->text