Project

General

Profile

1
<?xml version="1.0"?>
2
<!DOCTYPE testroot [
3
  <!ELEMENT testroot (a)>
4
  <!ELEMENT a (xn,b*,c*)>
5
  <!ATTLIST a testatt CDATA #REQUIRED>
6
  <!ELEMENT xn (#PCDATA)>
7
  <!ELEMENT b (#PCDATA)>
8
  <!ELEMENT c (#PCDATA)>
9
  <!ATTLIST c newatt CDATA #IMPLIED>
10
]>
11
<testroot><!-- Comment following testroot -->
12
  <a testatt="attvalue1"><xn>myxntext</xn>
13
    <b>Value1 <!-- Comment inside element b --></b>
14
    <c newatt="89766">Value2</c>
15
  </a><?mypi following="holy" warfare starts here ?>
16
</testroot>
(6-6/6)