Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Why oh why is working with XML so bloomin' difficult in Perl?

by gube (Parson)
on Jan 18, 2009 at 14:41 UTC ( #737156=note: print w/ replies, xml ) Need Help??


in reply to Modified title: The structures created by many of the XML parsers in Perl appear unnecessarily deep in levels...

Hi,

You can use XML::Simple as well. XML::Simple->new( KeepRoot => 1, KeyAttr => 1, ForceArray => 1 ); This will gives everything array of hashes.


Comment on Re: Why oh why is working with XML so bloomin' difficult in Perl?
Download Code
Re^2: Why oh why is working with XML so bloomin' difficult in Perl?
by wilsond (Scribe) on Jan 18, 2009 at 16:20 UTC

    If I didn't know my data input and wanted a simple way to get at it all without ref($var), I'd probably go this route. Then again, if you don't know your data input, you've got quite a bit of work cut out for you.


    If you want to do evil, science provides the most powerful weapons to do evil; but equally, if you want to do good, science puts into your hands the most powerful tools to do so.
    - Richard Dawkins

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2014-12-21 15:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (106 votes), past polls