I am evaluating the below XPath Boolean expression using Java's XPath API. However, the expression always returns true.
boolean(//InteractionControl/MessageId[text() = "fdsfsd"])
The text value of the MessageId node in the XML document is "9000," so the above XPath expression should return false unless I am missing something.
count(//InteractionControl/MessageId[text() = "fdsfsd"])is not 0, than your xpath matches non-empty Node set - Ivan Pronin