Mike - 2011-07-05

I am having trouble getting TinyXPath::o_xpath_bool to return the expected result when I am reading a boolean.

Here is the XML I am using:


Here is the code I am using to read it:

TiXmlDocument doc("C:\\Projects\\FalseTag.xml");
    bool falseValue = true;
    bool rtnValue = false;
    rtnValue = TinyXPath::o_xpath_bool(doc.RootElement(),"//A/BooleanTag/text()", falseValue);
    printf("Return Value: %s (%s)\n", rtnValue ? "True": "False" , falseValue? "True": "False");

I expect falseValue to be false after I call o_xpath_bool.
Can anyone point out what I am doing wrong?