Module: Wasabi::XPathHelper

Included in:
Parser
Defined in:
lib/wasabi/xpath_helper.rb

Constant Summary collapse

NAMESPACES =
{
  "xs"     => "http://www.w3.org/2001/XMLSchema",
  "wsdl"   => "http://schemas.xmlsoap.org/wsdl/",
  "soap11" => "http://schemas.xmlsoap.org/wsdl/soap/",
  "soap12" => "http://schemas.xmlsoap.org/wsdl/soap12/"
}

Instance Method Summary collapse

Instance Method Details

#at_xpath(*args) ⇒ Object



16
17
18
19
# File 'lib/wasabi/xpath_helper.rb', line 16

def at_xpath(*args)
  node, xpath = extract_xpath_args(args)
  node.at_xpath(xpath, NAMESPACES)
end

#xpath(*args) ⇒ Object



11
12
13
14
# File 'lib/wasabi/xpath_helper.rb', line 11

def xpath(*args)
  node, xpath = extract_xpath_args(args)
  node.xpath(xpath, NAMESPACES)
end