Re: [xml] Re: xmlChar problem



I think you need to make an actual compileable and runnable test case so
that other people can reproduce the problem. That should be part of your
debugging anyway.

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;
}

Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com



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