Bug#912780: Line numbers not printed on error despite XML_LIBXML_LINENUMBERS => 1
Niko Tyni
ntyni at debian.org
Sun Jan 13 10:02:10 GMT 2019
On Sun, Nov 04, 2018 at 04:48:43AM +0800, 積丹尼 Dan Jacobson wrote:
> Package: libxml-libxml-perl
> Version: 2.0132+dfsg-2+b1
> Severity: minor
>
> Line numbers not printed on error despite XML_LIBXML_LINENUMBERS => 1:
> $ cat e.pl
> use XML::LibXML;
> my $doc = XML::LibXML::Document->new( XML_LIBXML_LINENUMBERS => 1 );
> my $x = $doc->createElement('x');
> $x->appendChild($x);
> $ perl -w e.pl
> appendChild: HIERARCHY_REQUEST_ERR
Not sure what you expected to get, the offending line in the code
perhaps?
It looks to me like this feature is about reporting line numbers
in parsed XML documents, and you're not parsing anything.
--
Niko Tyni ntyni at debian.org
More information about the pkg-perl-maintainers
mailing list