in reply to XML::Smart 1.4.x vs 1.5.x
Output:use XML::Smart ; my $XML = new XML::Smart(q` <root> <output name='123'> <frames format='a'/> <frames format='b'/> </output> <output name='546'> <frames format='c'/> <frames format='d'/> </output> </root> `,'smart'); $XML = $XML->cut_root ; my $show = 123 ; my @output = @{ $XML->{output}('name','eq',$show){frames} } ; print "\n == Available Frame Formats For $show =="; foreach my $o (@output ){ print "\n $o->{format}" ; }
This was tested with XML::Smart/1.5.9.== Available Frame Formats For 123 == a b
Graciliano M. P.
"Creativity is the expression of the liberty".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: XML::Smart 1.4.x vs 1.5.x
by WMW (Initiate) on Apr 27, 2004 at 13:08 UTC |