From: Robert Klemme Date: 2010-10-21T05:40:15+09:00 Subject: Re: Help missing something BASIC On 20.10.2010 21:46, Don Norcott wrote: > I have actualy taken this first tutorial plus a few more >> http://zvon.org/xxl/XPathTutorial/General/examples.html >> > > From everything I did to verify the contents of > node(parse,to_s,to_html), I thought it to contain a single table > selected from the html page and could not prove different. > > That is why I was not looking at relative paths since I thought I was > dealing with only a single table on "each". That is why I mistakenly > used the array concept which is obviously not a parallel. > > Obviously I still do not understand the contents of node. From this posting of yours it's not clear to me what issue you have. Any XML or HTML parser that rips a document apart and builds a DOM of some kind will create a nested, strictly hierarchical tree structure. The only thing that may seem odd is that XPath queries beginning with "//" search through the complete document regardless of the node you invoke the method on. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/