Here is my code:
const TiXmlAttribute* pAttr = pElem->FirstAttribute();
const char* name = pAttr->Name(); // attribute name
const char* value = pAttr->Value(); // attribute value
float _D = 0.0;
if("SRAD" == name)  // returns false here, but name is indeed "SRAD"
{
    _D = atof(value);
}
The problem is the name is "SRAD", but the if condition returns false. Anyone educate me why? Thanks.
 
     
     
    