Perl: Missing ParserDetails.ini

By Eric Downing. Filed in Perl, Scripting  |  
TOP del.icio.us digg

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

Tags: ,

2 comments to “Perl: Missing ParserDetails.ini”

  1. Comment by Max Polk:

    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.

  2. Comment by ecdown:

    Thanks Max!

Leave a Reply