Skip to main content

xpath question for reading attribute value namespace-unaware

1 reply [Last post]
aldana
Offline
Joined: 2007-01-23
Points: 0

hope, i am not off-topic (though this was the forum where xpath question fit the most...).

i want to read an attribute value ignoring bound namespace (namespace declarations are omitted in following):

the retrieval i am doing with xpath. in both cases i want to retrieve the bla attribute value.

i tried //*[@attributeName] but this would only work with the unqualified () 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.

thanks for your help!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
aldana
Offline
Joined: 2007-01-23
Points: 0

a colleague was quicker than you ;)

//*/@*[local-name()='bla'] made the trick