http://www.perlmonks.org?node_id=111779


in reply to Re: converting a xml page into a hash table
in thread converting a xml page into a hash table

I normally use XML::Simple to convert an XML file to a hash array. The following code will store the contents of in.xml in a hash array.

#-- Sample code use strict; use XML::Simple; my $mXML; $mXML = XMLin('./in.xml',forcearray => 1);

You might also want to use the Data::Dumper module to view the hash array.

I hope this helps.