Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Help with XML::XPath

by gmpassos (Priest)
on Aug 19, 2004 at 14:18 UTC ( [id://384304]=note: print w/replies, xml ) Need Help??


in reply to Help with XML::XPath

Not a XPath solution, but something simple to do with XML::Smart:
use XML::Smart ; my $date = '1-2-2004' ; my $xml = new XML::Smart('your_file.xml') ; my $node = $xml->{AnnualWeatherRecord}{DailyWeatherRecord}('date' , +'eq' , $date) ; my $max = $node->{temperature}{maxdrybulb}{number} ; my @array = ($date , $max) ;

Graciliano M. P.
"Creativity is the expression of the liberty".

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://384304]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-20 02:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found