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".


In reply to Re: Help with XML::XPath by gmpassos
in thread Help with XML::XPath by perl_seeker

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":