in reply to Parse handler for Attributes in XML
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parse handler for Attributes in XML
by balajinagaraju (Sexton) on Apr 10, 2012 at 10:13 UTC | |
by kcott (Archbishop) on Apr 10, 2012 at 10:53 UTC |