Why is this not a valid XML DTD? (Parameter entity and #PCDATA)
Posted
by user68759
on Stack Overflow
See other posts from Stack Overflow
or by user68759
Published on 2010-05-10T13:58:50Z
Indexed on
2010/05/10
14:04 UTC
Read the original article
Hit count: 171
Hi,
Using the DTD validator here, I am informed that the following DTD is invalid.
<!ENTITY % text "(#PCDATA|L)*">
<!ELEMENT H (%text;)+>
<!ELEMENT L (#PCDATA)>
The error message is: "A '(' character or an element type is required within declaration of element type "H"." at line 2, column 22.
Can anyone please point out why it is invalid? The error message is not exactly very friendly to me. Thanks.
© Stack Overflow or respective owner