[xml] xmlChar problem
- From: "Thomas Rokohl" <rokohl raygina de>
- To: xml gnome org
- Subject: [xml] xmlChar problem
- Date: Tue, 9 Nov 2004 12:50:48 +0100
hi,
i have a very funny problem with xmlChar.
i have write the following function :
inline static float XMLP_GetFloatParameter(xmlTextReaderPtr reader,const
xmlChar* parameter)
float i = 0;
xmlChar* value = NULL;
if(xmlTextReaderMoveToAttribute(reader,parameter) == 1) {
value = xmlTextReaderValue(reader);
i = (float)atof((char*)value);
cout << value << "<>" << i << endl;
}
xmlFree(value);
return i;
}
and the output of cout is:
0.5<>0
i do not understand it. whats the problem?!?!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]