For the following XML instance:
<foo:a xmlns:foo="http://foo"> <b> whatever </b> </foo:a>
One can use the local-name(/*) and name(/*) XPath expressions to get a and foo:a respectively (as shown in this SO post).
Are there any XPath expressions to:
- get me the namespace binding of the root -or any other- element (
http://foo) - directly get me the namespace prefix of the root -or any other- element (
foo)