perlmonks_user has asked for the wisdom of the Perl Monks concerning the following question:
I am using xmlin function of XML::Simple to parse XML data file. However, it reads the XML comments which i would like to ignore. How can this be accomplished. I think this can be done using XML::Twig but i would like to use XML::Simple
Here is a snippet of my code.
Any help would be greatly appreciated.$xmlObj = new XML::Simple (KeyAttr=>[], SuppressEmpty => 1); my $xmlFileKeyAttr = eval { $xmlObj->XMLin($file) };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to ignore XML comments using XML::Simple
by toolic (Bishop) on Nov 16, 2011 at 22:02 UTC |