[Expat-bugs] [Bug #126514] cryptic err when xml PI has no encoding pseudo-attr
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 16 Feb 2001 14:21:09 -0800
Bug #126514, was updated on 2000-Dec-20 12:27
Here is a current snapshot of the bug.
Project: Expat XML Parser
Category: None
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: vassilii
Assigned to : fdrake
Summary: cryptic err when xml PI has no encoding pseudo-attr
Details: test.xml:
<?xml version="1.0"?>
<!DOCTYPE a [
<!ELEMENT a (#PCDATA|b)*>
<!ELEMENT b EMPTY>
<!ENTITY eee SYSTEM "eee.xml">
]>
<a>&eee;</a>
eee.xml:
<?xml version="1.0"?>
<b/>
Error message from Expat when parsing test.xml:
error in processing external entity reference at line 7, column 3, byte
124:
<!ENTITY eee SYSTEM "eee.xml">
]>
<a>&eee;</a>
==^
Tested with XML::Parser perl module. See
http://mailarchive.activestate.com/mail/msg/perl-xml:450354
Matt Sergeant resolved my problem (pointed to the missing encoding in <?xml
...?>) and suggested I post this here, which I gladly do.
Follow-Ups:
Date: 2001-Feb-16 14:21
By: fdrake
Comment:
Confirmed to still exist using the CVS version of Expat. I'm not familiar
with the Perl bindings myself, but will look further into reproducing it.
(Perhaps I should try writing a C program to do this; if it's an expat
problem, we don't need the scripting bindings getting in the way. If
anyone beats me to it, speak up!)
-------------------------------------------------------
Date: 2001-Feb-16 10:31
By: fdrake
Comment:
I can't reproduce this using the Python Expat bindings and the CVS version
of Expat; I'm not familiar with the Perl bindings. This may be related to
code driving external entity parsing as well.
Can you test this against the current CVS version of Expat? Does the
problem persist?
-------------------------------------------------------
Date: 2001-Feb-06 09:35
By: vassilii
Comment:
I used precisely the script shown at
http://mailarchive.activestate.com/mail/msg/perl-xml:450354
and these 2 XML files.
-------------------------------------------------------
Date: 2001-Feb-02 07:13
By: samth
Comment:
I can't reproduce any errors from those two files in current CVS. What
exactly did you do to generate the error?
-------------------------------------------------------
Date: 2001-Feb-02 07:12
By: samth
Comment:
I can't reproduce any errors from those two files in current CVS. What
exactly did you do to generate the error?
-------------------------------------------------------
Date: 2001-Feb-02 07:03
By: samth
Comment:
I can't reproduce any errors from those two files in current CVS. What
exactly did you do to generate the error?
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=126514&group_id=10127