[ expat-Bugs-583114 ] 1.95.4 not backward compatible w 1.95.2
noreply@sourceforge.net
noreply@sourceforge.net
Wed Jul 17 16:38:04 2002
Bugs item #583114, was opened at 2002-07-18 00:35
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=583114&group_id=10127
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Michel Rodriguez (mirod)
Assigned to: Nobody/Anonymous (nobody)
Summary: 1.95.4 not backward compatible w 1.95.2
Initial Comment:
When upgrading from 1.95.2 to 1.95.4 I found that the
behaviour of the library has changed: I can no longer
use a fake (non-existent) DTD to avoid entity
declaration errors.
I found the change using XML::Parser but I would think
it is caused by expat (it happened right after I
upgraded it):
perl -MXML::Parser -e'XML::Parser->new->parse( q{<?xml
version="1.0" standalone="no"?><!DOCTYPE doc SYSTEM
"dummy.dtd">
<doc>
<elt1>toto &ent1;</elt1>
</doc>});'
gives no error using 1.95.2 but a "undefined entity at
line 3, column 13, byte 90" with 1.95.4
I know that trick is devious and certainly slightly
evil, but I found it quite useful ;--)
The new result might be the proper behaviour but it is
not documented (as far as I could tell) and it
certainly breaks compatibility
----------------------------------------------------------------------
>Comment By: Michel Rodriguez (mirod)
Date: 2002-07-18 01:38
Message:
Logged In: YES
user_id=72556
I think the bug is actually not due to the library but to
XML::Parser, or at least to XML::Parser's integration with
the library. xmlfw correctly reports that the document is OK
if standalone is set to "no", even with 1.95.4
I will have a look at XML::Parser::Expat but my C is really
rusty :--(
Thanks
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=583114&group_id=10127