I have some scripts that were giving me the following message:
could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.10/XML/SAX
The way that I worked around this message was to create the ParserDetails.ini file in the /usr/lib/perl5/vendor_perl/5.10/XML/SAX directory with the following contents.
[XML::SAX::PurePerl] http://xml.org/sax/features/namespaces = 1
Monday, May 2nd 2011 at 5:56 pm
The other way is to touch the file to create it, then ask XML::SAX to add a parser to the file itself:
$ touch /usr/lib/perl5/vendor_perl/5.10/XML/SAX/ParserDetails.ini
$ perl -MXML::SAX -e “XML::SAX->add_parser(‘XML::SAX::PurePerl’)->save_parsers()”
This comes from notes in the “WRITING A SAX2 PARSER” section of the perldoc XML::SAX.
Monday, May 2nd 2011 at 7:05 pm
Thanks Max!