HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/gems/ruby-3.0.2/doc/activesupport-6.1.4.1/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