xpath question for reading attribute value namespace-unaware
posted 9 years ago
hi i want to read an attribute value ignoring bound namespace (namespace declarations are omitted in following):
<xml bla="asdf"/> <xml ns1:bla="asdf"/>
the retrieval i am doing with xpath.
i tried //*[@attributeName] but this would only work with the unqualified (<xml bla="asdf"/>) version. is there a wildcard version which ignores the namespace prefix of the attribute? i do not want to use the local-name() function for i don't know the element the attribute is contained in.