Module: ROXML::XML::NodeExtensions
Instance Method Summary collapse
Instance Method Details
#default_namespace ⇒ Object
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 |