Re: Xpath problem?

Liam Quin <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
On Wed, Oct 07, 2009 at 08:25:15PM +0200, Oliver Elphick wrote:
> On Wed, 2009-10-07 at 13:58 -0400, Liam Quin wrote:
> > So, change your ./ to .// or put in the full path...
> 
> I wondered if you meant // rather than .// .  But I find that either
> works.  Thanks.

In the case that your contect is the document node, they are the
me as each other, becae .//foo means, start at the current node and
look down for all foo nodes, and //foo mean, start at the document
node and look down for all foo nodes -- and if the current node _is_
the document node, they are the same.

Hope that helps.

Liam

-- 
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.