/
sample.xml
52 lines (52 loc) · 1.57 KB
/
sample.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<sample>
<chartest desc="Test for CHARs">Character data here!</chartest>
<cdatatest desc="Test for CDATA" misc="true"><![CDATA[CDATA here!]]></cdatatest>
<cdatawhitespacetest desc="Test for CDATA with whitespace" misc="true"><![CDATA[ ]]></cdatawhitespacetest>
<nochartest desc="No data" misc="false" />
<nochildrentest desc="No data" misc="false" />
<whitespacetest desc="Test for normalizing and trimming">
Line One
Line Two
</whitespacetest>
<listtest>
<item>
This <subitem>Foo(1)</subitem> is
<subitem>Foo(2)</subitem>
character
<subitem>Foo(3)</subitem>
data!
<subitem>Foo(4)</subitem>
</item>
<item>Qux.</item>
<item>Quux.</item>
</listtest>
<arraytest>
<item><subitem>Baz.</subitem></item>
<item><subitem>Foo.</subitem><subitem>Bar.</subitem></item>
</arraytest>
<emptytest/>
<tagcasetest>
<tAg>something</tAg>
<TAG>something else</TAG>
<tag>something third</tag>
</tagcasetest>
<ordertest>
<one>1</one>
<two>2</two>
<three>3</three>
<one>4</one>
<two>5</two>
<three>6</three>
</ordertest>
<validatortest>
<emptyarray/>
<oneitemarray>
<item>Bar.</item>
</oneitemarray>
<numbertest>42</numbertest>
<stringtest>43</stringtest>
</validatortest>
<pfx:top xmlns:pfx="http://foo.com" pfx:attr="baz">
<middle xmlns="http://bar.com"/>
</pfx:top>
</sample>