Koha/misc/sax_parser_print.pl
Nick Clemens 65af3904c5 Bug 17626 (QA followup)
Fix SAX parser error pointing to INSTALL docs

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-11-22 11:29:07 +00:00

15 lines
422 B
Perl
Executable file

#!/usr/bin/perl
# check the current SAX Parser
use strict;
use warnings;
use XML::SAX::ParserFactory;
my $parser = XML::SAX::ParserFactory->parser();
print "Koha wants something like:
XML::LibXML::SAX::Parser=HASH(0x81fe220)
You have:
$parser\n";
print "Looks " .
($parser =~ /^XML::LibXML::SAX::Parser=HASH/ ?
"good.\n" : "bad, check the Koha wiki documentation at https://wiki.koha-community.org.\n");