blob: 78a6f0aaf2b0ec23ef090482173aa204a4e8a39b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?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 *-->
|