Module: ROXML::XML::NodeExtensions

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

Instance Method Summary collapse

Instance Method Details

#attributesObject



46
47
48
# File 'lib/roxml/xml/parsers/nokogiri.rb', line 46

def attributes
  self
end

#default_namespaceObject



50
51
52
# File 'lib/roxml/xml/parsers/nokogiri.rb', line 50

def default_namespace
  document.default_namespace
end

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



41
42
43
44
# File 'lib/roxml/xml/parsers/nokogiri.rb', line 41

def search(xpath, roxml_namespaces = {})
  xpath = "./#{xpath}"
  (roxml_namespaces.present? ? super(xpath, roxml_namespaces) : super(xpath)).map {|i| i }
end