Re: [xml] Re: xmlChar problem
- From: "Murray Cumming" <murrayc murrayc com>
- To: "Thomas Rokohl" <rokohl raygina de>
- Cc: xml gnome org
- Subject: Re: [xml] Re: xmlChar problem
- Date: Tue, 9 Nov 2004 14:45:36 +0100 (CET)
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]