I have some simple XML parsing code where I check the name of the element and read its contents. This usually looks like:
if ( (*i)->getName() == std::string("MyElement") )
// read its attributes and child elements, etc.
This code works on Windows but on linux the string comparison doesn't work (also tried with strcmp) . When I print like:
std::cout << (*i)->getName() ;
I see an additional character just before the name of the element. For example, I see
Is this a bug or something I need to handle and I don't.
Thanks in advance,
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.