in reply to Extracting XML data from a tree
Not Twig but Simple:
use strict; use warnings; use XML::Simple; my $xml = XMLin( 'CC.xml' ); for (@{ $xml->{Week}{Day} }) { print $_->{Times}{Time}{'start-time'},"\n" if $_->{'day-of-week'} eq + "Tuesday"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extracting XML data from a tree
by Jenda (Abbot) on Jun 05, 2013 at 08:30 UTC | |
by hdb (Monsignor) on Jun 05, 2013 at 08:51 UTC |