Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

I use XML::Simple

by Rhose (Priest)
on Sep 11, 2001 at 21:41 UTC ( #111779=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://111779]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2019-08-21 00:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?