in reply to XML::Smart help, how to access attributes?
use warnings; use strict; use XML::Smart; my $xml_parser = XML::Smart->new('file.xml') ; print $xml_parser->{feed}->{'openSearch:totalResults'},"\n"; for my $entry (@{$xml_parser->{feed}->{entry}}) { printf('%s - %s%s', $entry->{'title'}, $entry->{'gd:etag'}, "\n"); } __END__ 1 Fitzwilliam Darcy - "Qn04eTVSLyp7ImA9WxRbGEUORAQ."
|
|---|