[Expat-discuss] why expat-1.95.6 can NOT parse parameter entity ?

rolf at pointsman.de rolf at pointsman.de
Mon Jul 14 12:33:44 EDT 2003


On 14 Jul, wangl wrote:
> Both expat-1.2 and expat-1.95.6 can NOT parse parameter entity. Who can tell me what reason is it for ? 
> 
> Just like the follow sample can NOT pass expat parser:
> 
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE aaa [
> <!ENTITY % common "id  CDATA #REQUIRED">
> <!ELEMENT aaa ANY>
> <!ATTLIST aaa %common;>
> ]>
> <aaa id="test"/>

Expat reports an xml error and is right with this. Your document is not
wellformed. See http://www.w3.org/TR/REC-xml#wfc-PEinInternalSubset for
the reason.

rolf





More information about the Expat-discuss mailing list