[Expat-bugs] [Bug #126514] cryptic err when xml PI has no encoding pseudo-attr

noreply@sourceforge.net noreply@sourceforge.net
Wed, 20 Dec 2000 12:27:04 -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 : nobody
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.


For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=126514&group_id=10127