[xml] xmlChar problem


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;
 return i;

and the output of cout is:


i do not understand it. whats the problem?!?!

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]