Skip to content


XML - ignore namespaces & use local names instead:

In XPath 1.0
Selects any element with "name" as local-name.
In XPath 2.0 you can use:

/[local-name()='a']/[local-name()='b' and @*[local-name() = 'bar']=\"zar\"]

You can use the local-name() XPath function. 
Instead of selecting a node like
you can select all nodes and filter for the one 
with the correct local name:
    /path/to/*[local-name() = 'somenode']