method
from_xml
rails latest stable - Class:
ActiveSupport::CoreExtensions::Hash::Conversions::ClassMethods
from_xml(xml)public
No documentation available.
# File activesupport/lib/active_support/core_ext/hash/conversions.rb, line 127
def from_xml(xml)
# TODO: Refactor this into something much cleaner that doesn't rely on XmlSimple
undasherize_keys(typecast_xml_value(XmlSimple.xml_in_string(xml,
'forcearray' => false,
'forcecontent' => true,
'keeproot' => true,
'contentkey' => '__content__')
))
end