M
mittra
I have an XML that looks like:
<abc attr1="val1" attr2="val2" attr1="val3">
</abc>
Yes, this is illegal per XML rule since we have two attr1 and when I parse it through XML::Simple, I get this error message:
duplicate attribute at line 14, column 291, byte 1936 at /usr/lib/perl5/XML/Parser.pm line 187
However, I am wondering if there is a way to tell XML::Simple to ignore this error.
Thanks.
<abc attr1="val1" attr2="val2" attr1="val3">
</abc>
Yes, this is illegal per XML rule since we have two attr1 and when I parse it through XML::Simple, I get this error message:
duplicate attribute at line 14, column 291, byte 1936 at /usr/lib/perl5/XML/Parser.pm line 187
However, I am wondering if there is a way to tell XML::Simple to ignore this error.
Thanks.