Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Xpath with unknown namespace prefix

jschellSomeoneStoleMyAliasApr 21 2006 — edited Apr 23 2006
Given XML that looks like this
   <nnn:XXX>
     <mmm:YYY>value</mmm:YYY>
   </nnn:XXX>
 
And in the above the 'mmm' can vary but the 'YYY' doesn't.

Can one construct an XPath expression that explicity returns the node-set for the inner element block using 'YYY'?

I am not looking for a first node or indexed solution but rather one that explicitly uses 'YYY' and not 'mmm' in some way.

I tried several variations (guesses) using the function Contains but that did nothing but produce syntax errors.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 21 2006
Added on Apr 21 2006
3 comments
730 views