Skip to content
Snippets Groups Projects
Commit 621288d6 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- disabled warnings of XML::LibXML::Parser if recovery is enabled

parent 39c27d86
No related branches found
No related tags found
No related merge requests found
...@@ -250,6 +250,9 @@ sub parse_iexml ($$) { ...@@ -250,6 +250,9 @@ sub parse_iexml ($$) {
# create object # create object
# #
#my $xp = XML::XPath->new (filename => $filename); #my $xp = XML::XPath->new (filename => $filename);
if ($recovery_flag) {
$recoverflag=2; # avoid warnings, see XML::LibXML::Parser POD about 'recovery'
}
my $dom = XML::LibXML->load_xml (location => $filename, recover => $recovery_flag, no_blanks=>1, compact=>1); my $dom = XML::LibXML->load_xml (location => $filename, recover => $recovery_flag, no_blanks=>1, compact=>1);
my $xp = XML::LibXML::XPathContext->new($dom); my $xp = XML::LibXML::XPathContext->new($dom);
$xp->registerNs("dnx", "http://www.exlibrisgroup.com/dps/dnx"); $xp->registerNs("dnx", "http://www.exlibrisgroup.com/dps/dnx");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment