You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Ashay Shende <as...@cisco.com> on 2003/09/22 09:05:22 UTC

XPath expression question.

Hi,
This shouldn't be difficult for XPath experts.

If I have several elements with name , say "elem". Some of these "elem"
elements have "attr" attributes and some don't.
How do I get those "elem" nodes which DO NOT have the "attr" attribute ?


elem[@attr] - will give all the "elem" nodes with "attr" attribute.
elem - will give ALL "elem" nodes.

Thanks in advance,
AS