Project

General

Profile

« Previous | Next » 

Revision 430

Updated the test.xml file to use more XML features for testing insert,
update, and read functions of DocumentImpl. Now the document contains
comments and processing instructions.

View differences:

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

Also available in: Unified diff