Reduced error reporting in XML::LibXML
"Nicolas Mendoza" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Organization | PVV |
| Message-ID | <op.vbke65ke4q17ch@nicolasm-desktop> |
Any idea why I get better diagnostics using xmllint compared to
XML::LibXML?
$ echo -e "<a>foo\0</a>" | xmllint -
-:1: parser error : Char 0x0 out of allowed range
<a>foo
^
-:1: parser error : Premature end of data in tag a line 1
<a>foo
^
$ echo -e "<a>foo\0</a>" | perl -wle 'use XML::LibXML; local $/; my $in =
<>; my $p = XML::LibXML->new(); $p->parse_string($in);'
:1: parser error : Premature end of data in tag a line 1
$ perl -wle 'use v5.10; use XML::LibXML; say $XML::LibXML::VERSION'
1.69
--
Sendt med Operas revolusjonerende e-postprogram: http://www.opera.com/mail/
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs