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

Murray Cumming
murrayc murrayc com

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