Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

I use XML::Simple

by Rhose (Priest)
on Sep 11, 2001 at 21:41 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://111779]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2024-04-23 08:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found