Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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...


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

Replies are listed 'Best First'.
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?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2022-01-21 00:11 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (57 votes). Check out past polls.