Subject: | Entity processing in XML::LibXML::SAX::Parser |
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'
};
Message body not shown because it is not plain text.