Ronald Fischer
7/13/2007 7:47:00 AM
> You seem comfortable with XPath, so let me strongly encourage the
> methods defined in the REXML::XPath class instead of the []-based
> methods.
> REXML::XPath.each(doc, "/ns:toplevel/ns:request") {|element|
> puts element.attributes["requestID"]
> }
> p REXML::XPath.match(doc, "/ns:toplevel/ns:request[@requestID='2']")
Thanks a lot for the suggestion!
(And also thanks to Todd Benson for pointing out my error).
Ronald