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:
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?
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.