The question is quite silly, but I am completely stuck. I want to extract child nodes of a node based on a condition. The XML is as follows:
Try this
/a/aCode[text()='aaa']
or
//*[local-name() = 'aCode' and text() = 'aaa']
You have used // at wrong place.
//