Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Re: Simple xPath. Specyfication lapse?

Reply
Thread Tools

Re: Simple xPath. Specyfication lapse?

 
 
Richard Tobin
Guest
Posts: n/a
 
      04-16-2009
In article <gs7dk8$3v0$(E-Mail Removed)>, szomiz <(E-Mail Removed)> wrote:

><root i="1">
> <div i="2">
> <other i="3">
> <para i="4"/>
> </other>
> <para i="5"/>
> </div>
></root>


>tt=txml.documentElement.selectNodes('div//para');


I'm not familiar with the Microsoft libraries you're using, but
presumably this should give you the two nodes <para i="4"/> and
<para i="5"/>.

>WScript.Echo(tt[0].xml)


And presumably this should give you the first (in document order) of
those two nodes, which it does:

>Result: <para i="4"/>


Bear in mind that XPath 1 talks about node *sets*, and the indexing
operation on these sets use document order, not the order they are
generated by some algorithm.

-- Richard
--
Please remember to mention me / in tapes you leave behind.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Simple xPath. Specyfication lapse? Martin Honnen XML 0 04-16-2009 02:13 PM
Simple VB.Net / webservice requirement (but not simple for me....) Dave E ASP .Net 7 01-11-2006 02:07 PM
Simple Question - Simple Answer? Daniel Frey XML 4 01-12-2005 04:25 PM
Re: Simple Simple question!!! Kevin Spencer ASP .Net 0 06-25-2004 05:25 PM
Re: Simple Simple question!!! ashelley@inlandkwpp.com ASP .Net 0 06-25-2004 04:18 PM



Advertisments