Method: OpenNebula::XMLElement#element_xml
- Defined in:
- lib/opennebula/xml_element.rb
#element_xml(xpath) ⇒ Object
Returns the xml of an element
288 289 290 291 292 293 294 |
# File 'lib/opennebula/xml_element.rb', line 288 def element_xml(xpath) if NOKOGIRI @xml.xpath(xpath).to_s else @xml.elements[xpath].to_s end end |