From: Robert Klemme Date: 2008-09-16T15:32:49+09:00 Subject: Re: ruby / rexml / xpath bug? On 15.09.2008 23:48, altinsel wrote: > Mark, > > Thank you. The './/' syntax seems to work. (I'm very happy about > that). I'd still rather combine the two into a single iteration. > Now if you don't mind I'd like to ask: as far as I understand it, the > "each_element" method should only be plucking a specific branch > ("place") off the tree, and that branch is a new, stand-alone tree, > and shouldn't even have the first element's data, let alone the rest > of the tree. I even So how was that information even getting in > there? http://www.w3schools.com/xpath/xpath_syntax.asp Basically a node knows about the whole document (it knows its parent as well). So you cannot only look down but up as well. This is not too unusual (just think about filesystems). Cheers robert