match(element, path=nil, namespaces=nil, variables={})
public
Returns an array of nodes matching a given XPath.
Show source
def XPath::match element, path=nil, namespaces=nil, variables={}
parser = XPathParser.new
parser.namespaces = namespaces
parser.variables = variables
path = "*" unless path
element = [element] unless element.kind_of? Array
parser.parse(path,element)
end