I was trying to parse and search a node in an xml file. I got an error while executing the "findnodes" method on the root element.
The error message:
"xmlXPathCompiledEval: evaluation failed"
Could any of you help me resolve this error please? I know for sure that the XML doc is a valid xml and the node that I am searching for exists for sure!
I found another weird behavior! When i hardcode the node name in "findnodes" call, the program runs successfully! But when i pass the node name as a variable, i get the error that i mentioned earlier!! Why would that be?!!