Ruby REXML::XPath Functions

EditRocket provides the following information on REXML::XPath functions in the Ruby source code builder.

each(element, path=nil, namespaces=nil, variables={}) - Itterates over nodes that match the given path, calling the supplied block with the match.

first(element, path=nil, namespaces=nil, variables={}) - Finds and returns the first node that matches the supplied xpath.

match(element, path=nil, namespaces=nil, variables={}) - Returns an array of nodes matching a given XPath.