Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 scrutinizing the Monastery: (11)
As of 2014-12-26 15:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (171 votes), past polls