HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/activesupport-7.0.4.2/ri/Hash/from_xml-c.ri
U:RDoc::AnyMethod[iI"
from_xml:ETI"Hash::from_xml;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"dReturns a Hash containing a collection of pairs when the key is the node name and the value is ;TI"its content;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim;	[I"xml = <<-XML
;TI".  <?xml version="1.0" encoding="UTF-8"?>
;TI"    <hash>
;TI"'      <foo type="integer">1</foo>
;TI"'      <bar type="integer">2</bar>
;TI"    </hash>
;TI"	XML
;TI"
;TI"hash = Hash.from_xml(xml)
;TI")# => {"hash"=>{"foo"=>1, "bar"=>2}}
;T:@format0o;
;	[I"\+DisallowedType+ is raised if the XML contains attributes with <tt>type="yaml"</tt> or ;TI"C<tt>type="symbol"</tt>. Use <tt>Hash.from_trusted_xml</tt> to ;TI"parse this XML.;T@o;
;	[I"DCustom +disallowed_types+ can also be passed in the form of an ;TI"array.;T@o;;	[I"xml = <<-XML
;TI".  <?xml version="1.0" encoding="UTF-8"?>
;TI"    <hash>
;TI"'      <foo type="integer">1</foo>
;TI",      <bar type="string">"David"</bar>
;TI"    </hash>
;TI"	XML
;TI"
;TI",hash = Hash.from_xml(xml, ['integer'])
;TI"\# => ActiveSupport::XMLConverter::DisallowedType: Disallowed type attribute: "integer"
;T;
0o;
;	[I"PNote that passing custom disallowed types will override the default types, ;TI"which are Symbol and YAML.;T:
@fileI"4lib/active_support/core_ext/hash/conversions.rb;T:0@omit_headings_from_table_of_contents_below000[I""(xml, disallowed_types = nil);T@5FI"	Hash;TcRDoc::NormalClass00