<?xml version="1.0"?>
<!DOCTYPE root [
<!ELEMENT root (a,b)>
<!ELEMENT a EMPTY>
<!ELEMENT b (#PCDATA|c)* >
<!ELEMENT c ANY>
<!ENTITY inContent "<b>General entity reference in element content</b>">
]>
<!--* content: element|CharData|Reference|CDSect|PI|CDSect|PI|Comment *-->
<root><a/><b>
<!-- there is an empty element in the above line -->
<c></c>
CharData: content of b element
%paaa; : PE reference should not be recognized in element content
<c>
<?PIcontent anyProcessingInstruction?>
<!-- Comment content -->
&inContent;
Charater reference: A
CDSect in content: <![CDATA[ <html>markups<head>HEAD</head><body>nothing</body></html> ]]>
</c>
</b>
</root>
<!--* test P43 *-->
|