Please show a small snippet of your XML file and the contents of your $xmlFileKeyAttr (both with comments).use warnings; use strict; use XML::Simple; use Data::Dumper; my $xml = ' <foo> <bar>123</bar> <!-- COMMENT --> <bar>abc</bar> </foo> '; my $ref = XMLin($xml); print Dumper($ref); __END__ $VAR1 = { 'bar' => [ '123', 'abc' ] };
In reply to Re: How to ignore XML comments using XML::Simple
by toolic
in thread How to ignore XML comments using XML::Simple
by perlmonks_user
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |