eTechtips

Tech Tips and Insights

Perl: Missing ParserDetails.ini

/ ,

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

Loading

2 Comments

2 responses to “Perl: Missing ParserDetails.ini”

  1. Max Polk Avatar
    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. ecdown Avatar

    Thanks Max!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.