in reply to Parse handler for Attributes in XML
To access a specific attribute (e.g. command) just say:for my $attr (keys %attrs) { if ($attr eq 'command') { print "Command: $attrs{$attr}\n"; } }
my $command = $attrs{command};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parse handler for Attributes in XML
by balajinagaraju (Sexton) on Apr 10, 2012 at 10:24 UTC |