Thanks Eric,
It worked and gave me the desired result.

Thanks again for the speedy reply.

AS.

-----Original Message-----
From: Erik Rydgren [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 12:38 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: XPath expression question.


elem[not(boolean(@attr))]

/ Erik

> -----Original Message-----
> From: Ashay Shende [mailto:[EMAIL PROTECTED]
> Sent: den 22 september 2003 09:05
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: 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
?
> 
> 
> [EMAIL PROTECTED] - will give all the "elem" nodes with "attr" attribute.
> elem - will give ALL "elem" nodes.
> 
> Thanks in advance,
> AS
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to