Module: ROXML::XML::NodeExtensions

Included in:
Element, Node
Defined in:
lib/roxml/xml/parsers/nokogiri.rb

Instance Method Summary collapse

Instance Method Details

#default_namespaceObject



69
70
71
# File 'lib/roxml/xml/parsers/nokogiri.rb', line 69

def default_namespace
  document.default_namespace
end

#roxml_search(xpath, roxml_namespaces = {}) ⇒ Object



64
65
66
67
# File 'lib/roxml/xml/parsers/nokogiri.rb', line 64

def roxml_search(xpath, roxml_namespaces = {})
  xpath = "./#{xpath}"
  (roxml_namespaces.present? ? search(xpath, roxml_namespaces) : search(xpath))
end