Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: A puzzle for parsing XML with XML::Simple!

by olus (Curate)
on Jan 25, 2008 at 11:43 UTC ( [id://664268]=note: print w/replies, xml ) Need Help??


in reply to A puzzle for parsing XML with XML::Simple!

The thing to be aware of in this case is to the following note on the module documentation.
Note 1: The default value for 'KeyAttr' is ['name', 'key', 'id']. If y +ou do not want folding on input or unfolding on output you must setti +ng this option to an empty list to disable the feature.
So, since you have an element named 'name', XML::Simple does that grouping trick.
What you need to do is to set KeyAttr to an empty list
my $xml = XML::Simple->new(KeyAttr=>[]);

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-19 01:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found