Method: String#to_xml

Defined in:
lib/deltacloud/core_ext/string.rb

#to_xmlObject

Used to automagically convert any XML in String (like HTTP response body) to Nokogiri::XML object

If Nokogiri::XML fails, InvalidXMLError is returned.



23
24
25
# File 'lib/deltacloud/core_ext/string.rb', line 23

def to_xml
  Nokogiri::XML(self)
end