Class | XmlSimple |
In: |
lib/active_support/core_ext/hash/conversions.rb
lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb |
Parent: | Object |
Easy API to maintain XML (especially configuration files).
KNOWN_OPTIONS | = | { 'in' => %w( keyattr keeproot forcecontent contentkey noattr searchpath forcearray suppressempty anonymoustag cache grouptags normalisespace normalizespace variables varattr keytosymbol ), 'out' => %w( keyattr keeproot contentkey noattr rootname xmldeclaration outputfile noescape suppressempty anonymoustag indent grouptags noindent ) | Declare options that are valid for xml_in and xml_out. | |
DEF_KEY_ATTRIBUTES | = | [] | Define some reasonable defaults. | |
DEF_ROOT_NAME | = | 'opt' | ||
DEF_CONTENT_KEY | = | 'content' | ||
DEF_XML_DECLARATION | = | "<?xml version='1.0' standalone='yes'?>" | ||
DEF_ANONYMOUS_TAG | = | 'anon' | ||
DEF_FORCE_ARRAY | = | true | ||
DEF_INDENTATION | = | ' ' | ||
DEF_KEY_TO_SYMBOL | = | false |
Converts an XML document in the same way as the Perl module XML::Simple.
string: | XML source. Could be one of the following:
|
options: | Options to be used. |
Same as xml_in but doesn‘t try to smartly shoot itself in the foot.