Erdem - 2009-09-04


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


instead of


Is this a bug or something I need to handle and I don't.

Thanks in advance,