Skip Menu |
 

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 133
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: rtcp [...] mjo.tc
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.31
Fixed in: (no value)

Attachments


Subject: Entity processing in XML::LibXML::SAX::Parser
Download (untitled) / with headers
text/plain 1020b
This is running on the CVS version of XML::LibXML (snarfed on 14.i.2002) The tarball contains three files: foo.xml, foo.dtd, and ent_bug. foo.xml is a trivial XML file, foo.dtd a trivial DTD which defines the &banana; entity. Processing the foo files with xmllint to resolve the &banana; works: $ xmllint --noent --loaddtd foo.xml <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE foo SYSTEM "foo.dtd"> <foo> The humble banana </foo> but trying to read the file with ent_bug fails: $ ./ent_bug START: $VAR1 = bless( {}, 'MyParser' ); $VAR2 = { 'LocalName' => 'foo', 'NamespaceURI' => undef, 'Attributes' => {}, 'Prefix' => undef, 'Name' => 'foo' }; CHAR: $VAR1 = bless( {}, 'MyParser' ); $VAR2 = { 'Data' => ' ' }; END: $VAR1 = bless( {}, 'MyParser' ); $VAR2 = { 'LocalName' => 'foo', 'NamespaceURI' => undef, 'Attributes' => {}, 'Prefix' => undef, 'Name' => 'foo' };
Download ent_bug.tar
application/x-tar 10k

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 1.1k
Seems to be fixed with the current CVS code. [guest - Mon Jan 14 05:23:53 2002]: Show quoted text
> This is running on the CVS version of XML::LibXML (snarfed on > 14.i.2002) > > The tarball contains three files: foo.xml, foo.dtd, and ent_bug. > > foo.xml is a trivial XML file, foo.dtd a trivial DTD which defines the > &banana; entity. > > Processing the foo files with xmllint to resolve the &banana; works: > > $ xmllint --noent --loaddtd foo.xml > <?xml version="1.0" encoding="utf-8"?> > <!DOCTYPE foo SYSTEM "foo.dtd"> > <foo> > > The humble banana > > </foo> > > > but trying to read the file with ent_bug fails: > > $ ./ent_bug > START: $VAR1 = bless( {}, 'MyParser' ); > $VAR2 = { > 'LocalName' => 'foo', > 'NamespaceURI' => undef, > 'Attributes' => {}, > 'Prefix' => undef, > 'Name' => 'foo' > }; > CHAR: $VAR1 = bless( {}, 'MyParser' ); > $VAR2 = { > 'Data' => ' > > > > ' > }; > END: $VAR1 = bless( {}, 'MyParser' ); > $VAR2 = { > 'LocalName' => 'foo', > 'NamespaceURI' => undef, > 'Attributes' => {}, > 'Prefix' => undef, > 'Name' => 'foo' > }; > >
Date: Thu, 24 Jan 2002 18:06:22 +0000 (GMT)
To: bug-XML-LibXML [...] rt.cpan.org
Cc: rtcp [...] mjo.tc, PHISH [...] cpan.org
Subject: [cpan #133] Entity processing in XML::LibXML::SAX::Parser
From: Martin Oldfield <m [...] mjo.tc>
Download (untitled) / with headers
text/plain 1.4k
I've just downloaded the current XML::LibXML from CVS and still seem the same bug. Am I being foolish, do I have the wrong version of libxml2 (2.4.12) ? Cheers, Show quoted text
>>>>> "via" == via RT <bug-XML-LibXML@rt.cpan.org> writes:
Show quoted text
via> Seems to be fixed with the current CVS code.
Show quoted text
via> [guest - Mon Jan 14 05:23:53 2002]:
Show quoted text
>> This is running on the CVS version of XML::LibXML (snarfed on >> 14.i.2002) >> >> The tarball contains three files: foo.xml, foo.dtd, and >> ent_bug. >> >> foo.xml is a trivial XML file, foo.dtd a trivial DTD which >> defines the &banana; entity. >> >> Processing the foo files with xmllint to resolve the &banana; >> works: >> >> $ xmllint --noent --loaddtd foo.xml <?xml version="1.0" >> encoding="utf-8"?> <!DOCTYPE foo SYSTEM "foo.dtd"> <foo> >> >> The humble banana >> >> </foo> >> >> >> but trying to read the file with ent_bug fails: >> >> $ ./ent_bug START: $VAR1 = bless( {}, 'MyParser' ); $VAR2 = { >> 'LocalName' => 'foo', 'NamespaceURI' => undef, 'Attributes' => >> {}, 'Prefix' => undef, 'Name' => 'foo' }; CHAR: $VAR1 = bless( >> {}, 'MyParser' ); $VAR2 = { 'Data' => ' >> >> >> >> ' }; END: $VAR1 = bless( {}, 'MyParser' ); $VAR2 = { >> 'LocalName' => 'foo', 'NamespaceURI' => undef, 'Attributes' => >> {}, 'Prefix' => undef, 'Name' => 'foo' }; >> >>
-- M.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.