# File rexml/xpath.rb, line 23 def XPath::match element, path=nil, namespaces=nil raise "nil is not a valid xpath" unless path parser = XPathParser.new parser.namespaces = namespaces path = "*" unless path parser.parse(path,[element]) end