XML::LibXML hangs on document w/ DTD
Vaclav Barta <[email protected]> Tue, 15 Nov 2011 19:33:11 +0100
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
Hi, in response to a user bug report, I tried testing my module (XML::DifferenceMarkup) again and found that its testsuite hangs on my machine :-( - which isn't necessarily anybody else's problem, :-) but I've isolated it to a test case that isn't using XML::DifferenceMarkup at all: #!/usr/bin/perl use XML::LibXML; use strict; use warnings; my $parser = XML::LibXML->new(); $parser->keep_blanks(0); my $a = $parser->load_xml(string => <<'ADOC'); <html> </html> ADOC print "parsed a\n"; my $b = $parser->load_xml(string => <<'BDOC'); <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> </html> BDOC print "parsed b\n"; prints "parsed a" but hangs when parsing b... It could still be a problem with my local configuration (although AFAIK I didn't do anything special to resolve DTDs), but xmllint handles the "b" doc fine - adds xml declaration but doesn't complain about anything and ends normally. libxml2 is 2.7.8, XML::LibXML 1.70 (I also tried 1.88, with the same result) on gentoo. Has anybody seen (and ideally solved) this problem before? Bye Vasek _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs