Menu

#62 illegal parameter entity reference

Not a Bug
closed-invalid
5
2002-04-16
2001-06-13
Martin Harm
No

Hi folks,
this is the error msg from the example prog outline
when feeded with the following xml-file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE title [
<!ENTITY % inline "(#PCDATA|em|b|a|img|br)*">
<!ELEMENT title (%inline;) > <!-- error !! -->

]>
<title>Oha</title>

->
Parse error at line 4:
illegal parameter entity reference

Why ??

(I'm using expat.1.95.1 on Linux)

Discussion

  • Nobody/Anonymous

    Logged In: NO

    expat is right. Your example document isn't wellformed XML.

    See xml recommendation 2.8: Well-Formedness Constraint: PEs
    in Internal Subset

     
  • Fred L. Drake, Jr.

    • milestone: --> Not a Bug
    • status: open --> closed-invalid
     
  • Fred L. Drake, Jr.

    Logged In: YES
    user_id=3066

    The previous comment is right. XML is much stricter about
    PEs than SGML. Closing this report.

     

Log in to post a comment.

MongoDB Logo MongoDB