XPATH help

Questions about XML that are not covered by the other forums should go here.
Posts: 1
Joined: Thu Jul 21, 2005 5:48 pm

XPATH help

Post by atp2bdb » Thu Jul 21, 2005 5:51 pm

I have an XML document that contains elements that have an attribute TimeStamp. Is there a way to use XPATH to search my xml file for TimeStamps in a certain range?

Posts: 7587
Joined: Fri Jul 09, 2004 5:18 pm

Post by Radu » Fri Jul 22, 2005 10:55 am


For this XML file:

Code: Select all

<a id="1"/>
<a id="2"/>
<a id="3"/>
The following XPath

Code: Select all

//a[@id < 3 and @id >1]
gives as result the node a with id = 2.

Hope this helps.
Regards, Radu.

Post Reply