From: Mark Volkmann Date: 2006-01-27T11:18:50+09:00 Subject: Re: REXML and XPath On 1/26/06, Mark Volkmann wrote: > The documentation for REXML says is has full XPath 1.0 support. > However, I can't see a way to get the XPath class to return values > other than nodes. For example, if I have an XML document that contains > "book" elements, I should be able to do something like this. > > count = XPath.evaluate(doc, count('//book')) Minor syntax correction here, count = XPath.evaluate(doc, 'count(//book)') > There is no "evaluate" method and the "first" and "match" methods don't do this. > > Is this supported? -- R. Mark Volkmann Partner, Object Computing, Inc.