Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: XML Array/Hash Issue

by Discipulus (Prior)
on Nov 21, 2013 at 10:16 UTC ( #1063709=note: print w/replies, xml ) Need Help??


in reply to XML Array/Hash Issue

Oh yes, as stated by Preceptor XML::Twig is my choice too.
It tempt you to resolve such simple problems in a oneliner:
perl -e "use XML::Twig; $t= XML::Twig->new( pretty_print => 'indented' +,twig_handlers => {'/errors/error/desc'=>sub{print $_[1]->text,qq(\n +);},});$t->parsefile($ARGV[0]);" error.xml
hth
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1063709]
help
Chatterbox?
[Corion]: LanX: Yes, that's the main problem - you have lots (and lots) of workarounds in various places and stages of the processing, and to clean that mess up requires action across the complete codebase. And it's almost impossible to do it piece-by-piece
Corion is in a similar situation.#

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2017-01-16 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (150 votes). Check out past polls.