Hi Hunter,
quick and dirty:
Hash[xml.scan(%r{>([^>])}).flatten]
returns
{“12”=>“AAF”,
“7”=>“AAE”,
“13”=>“AAG”,
“8”=>“AAA”,
“9”=>“ISA”,
“1”=>“AAA”,
“2”=>“AAB”,
“4”=>“AAC”,
“5”=>“AAD”}
cheers
Simon
Hi Hunter,
quick and dirty:
Hash[xml.scan(%r{>([^>])}).flatten]
returns
{“12”=>“AAF”,
“7”=>“AAE”,
“13”=>“AAG”,
“8”=>“AAA”,
“9”=>“ISA”,
“1”=>“AAA”,
“2”=>“AAB”,
“4”=>“AAC”,
“5”=>“AAD”}
cheers
Simon
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs