p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

ms_xsl thread: get a range of nodes from XML data


Message #1 by "sanju_pat" <sanju_pat@i...> on Mon, 29 Apr 2002 20:20:00 +0530
--=_MAILER_ATTACH_BOUNDARY1_20024291202001977648522
Content-Type: text/plain; charset=us-ascii

Hi All , 
I'm very new to XML &amp; Xpath.
I wanted to get range of Data from XML using a XPath query , how can I do this ?


 


&lt;Results&gt;
&lt;Item name="" price=""&gt;some data &lt;/item&gt;
&lt;Item name="" price=""&gt;some data &lt;/item&gt;
&lt;Item name="" price=""&gt;some data &lt;/item&gt;
&lt;Item name="" price=""&gt;some data &lt;/item&gt;
&lt;Item name="" price=""&gt;some data &lt;/item&gt;
&lt;Item name="" price=""&gt;some data &lt;/item&gt;
&lt;Item name="" price=""&gt;some data &lt;/item&gt;
&lt;Item name="" price=""&gt;some data &lt;/item&gt;
&lt;/Results&gt;


in the above XML file I have got 8 elements/node and if for example I would like to get all the elements between element no-3 to
element no-6. Can I do this using a Xptah query .I am working on .NET System.Xml APIs ,so it would be great if somebody tell me the
APIs to be used for the same.


Thanks,
Sanju
Get Your Private, Free E-mail from Indiatimes at  http://email.indiatimes.com
Buy Music, Video, CD-ROM, Audio-Books and Music Accessories from http://www.planetm.co.in



  Return to Index