[xml] xmlChar problem



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]