I'm not particularly familiar with XML::Parser but this line in particular leapt out at me:
if (%attrs eq "command") {
I suspect you want something like:
if (exists $attrs{command}) {
I also noticed your XML has no closing tag (i.e. </DCA>) - possibly a cut-n-paste error.
-- Ken
In reply to Re: Parse handler for Attributes in XML
by kcott
in thread Parse handler for Attributes in XML
by balajinagaraju
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |