Misc Perl oddness

From LaneWiki

Jump to: navigation, search

XML Reporter freaks out in an infinite loop and other XML oddness

 The following is disputed. On some systems (F10, for example), the PurePerl parser works when the LibXML one doesn't!

This problem seems to happen if you are using the XML::SAX::PurePerl parser. The easiest fix is to change the order of the parsers listed in the XML::SAX config file (usually /usr/lib/perl5/THIS-PART-FREQUENTLY-VARIES/XML/SAX/ParserDetails.ini) so another parser is picked by default. We generally use the LibXML parsers and recommend them.

For example, on CentOS/RHEL: /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX/ParserDetails.ini

[XML::LibXML::SAX::Parser]
http://xml.org/sax/features/namespaces = 1

[XML::SAX::PurePerl]
http://xml.org/sax/features/namespaces = 1

[XML::LibXML::SAX]
http://xml.org/sax/features/namespaces = 1
Personal tools