[xml] Re: xmlChar problem



no i don't think so. it's a point. the problem appears every now and then.
so it's hard to find them.


"Stefan Kost" <kost imn htwk-leipzig de> schrieb im Newsbeitrag 
news:4190C05D 1050400 imn htwk-leipzig de   
can it be you locale? Some locales use ',' as a decimal separator.

Stefan

Thomas Rokohl wrote:
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?!?!






_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml


-- 
     \|/            Stefan Kost
    <@ @>           private            business

-oOO-(_)-OOo------------------------------------------------------ - - -   
-   -
|       __  Address  Simildenstr. 5     HTWK Leipzig, Fb IMN, Postfach 
301166
|      ///           04277 Leipzig      04251 Leipzig
| __  ///            Germany            Germany
| \\\///    Phone    +49341 2253538     +49341 30766101
|  \__/     EMail    st_kost_at_gmx.net kost_at_imn.htwk-leipzig.de
|           WWW      www.sonicpulse.de 
www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - -  -    -



--------------------------------------------------------------------------------


_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml







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