Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Finding max value from a unique tag from XML

by Shaveta_Chawla (Acolyte)
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2014-07-13 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (249 votes), past polls