logo       

Re: Error message- ParserDetails.ini?: msg#00063

lang.perl.xml

Subject: Re: Error message- ParserDetails.ini?

Kenneth Porter wrote:
From the makefile generated for XML::SAX, I found this command which seems to
do the trick:

perl -MXML::SAX \
-e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"

I was working on making an RPM from this module and I just moved this line to
the %post section of my SPEC file so that it gets done when the binary RPM is
installed.

It would be absolutely perfect if before doing that you would check if the file exists. The reason is that XML::SAX::ParserFactory pick the last parser in that file if none is specified. When there already is a file, it is highly likely that a parser other that PurePerl is already installed, and that that's the one the user wants to use because it'll be much faster than PurePerl. Blindly adding PurePerl if the file exists will override that.

--
Robin Berjon
_______________________________________________
Perl-XML mailing list
Perl-XML@xxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise