Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Finding max value from a unique tag from XML

by Shaveta_Chawla (Sexton)
on Nov 22, 2012 at 10:24 UTC ( #1005101=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    <doc>
    <date name="processingtime">2011-04-09T11:12:22.049Z</date>
    ...
    <str name="docuid">89822</str>
    <str name="title">LKK</str>
    <\doc>
    
  2. or download this
    $html =~ s/<doc>/<doc>\n\n\n\n\n\n/g;
    my (@lines) = split("\n\n\n\n\n", $html);
    ...
    }
    }
    my $max = max @docuid;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1005101]
Front-paged by Arunbear
help
Chatterbox?
[AnomalousMonk]: LanX: I should have written "vessel". Rama was (is? - I'm still hoping) no asteroid.
[erix]: itym vehicle (vessel is for water-vehicles)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2017-11-22 17:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (327 votes). Check out past polls.

    Notices?