Xpath: select node based in a condition (with local-name())

dapexis

New Member
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 following:\[code\]<a> <aCode>aaa</aCode> <aValue>bbb</aValue></a>\[/code\]The expression is obvious: //a[aCode='aaa']But i can't get how i should change it if it is with namespaces and i've got to use local-name(). I've tested the following at http://www.xmlme.com/XpathTool.aspx and it gives a parsing error:/*[local-name()='a'][[local-name()='aCode']='aaa']Has anyone any idea of what I should do?Thanks in advance.
 
Back
Top