in reply to Re: Re: Re: looping over xml
in thread looping over xml
Using XML::Twig you create and parse the twig with:
my $t= XML::Twig->new(); $t->parse( $content);
You can get all the audio elements by doing: my @audio= $twig->descendants( 'audio') (I'll let you figure out how to get all the goto elements ;--)
You can then access the src attribute using $elt->att( 'src')
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: looping over xml
by Micz (Beadle) on Aug 07, 2001 at 12:59 UTC |