xpath Namespace aware functions


Example

<root xmlns="http://test/">
    <element xmlns:example="http://foobar/">
        <example:hello_world attribute="another example" />
    </element>
</root>

The expression /root will return nothing, because there is no non-namespaced element called root at the root level of the document. However, The following will return the <root xmlns="http://test/"> element.

/*[namespace-uri() = 'http://test/' and local-name() = 'root']