Project

General

Profile

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