Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: How to Parse XML output?

by rjt (Deacon)
on Mar 12, 2013 at 23:37 UTC ( #1023078=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use 5.014;
    use XML::Simple;
    
    my $xmls = XMLin($xml_string);
    say $_->{AttrValue} for grep { $_->{AttrName} eq 'ref_num' }
                            @{$xmls->{Attributes}->{Attribute}}; 
    
  2. or download this
    use Data::Dump;
    
    dd $xmls;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1023078]
help
Chatterbox?
[Yary]: Any monk want to point me to a post discussing style- what order to declare strict, warning, package, and the modules to "use"?
[marto]: yikes
[marto]: and this is a bank you say?

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2018-01-23 16:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (249 votes). Check out past polls.

    Notices?