From: Mark Thomas Date: 2008-11-04T00:58:50+09:00 Subject: Re: Using XPath: find last text node of each paragraph under the root node. > I have tried //root//p/child::text()[last()] on other XPath parsers, > and it works. Could just be a bug (or different interpretation of the > rules) by REXML? Sounds like a bug to me too. Is there a reason you don't want to use a parser like libxml-ruby, which is fully XPath 1.0 compliant (and will give you a speed boost as well)? -- Mark.