[go: up one dir, main page]

File: test.xml

package info (click to toggle)
commons-configuration 1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,440 kB
  • ctags: 4,113
  • sloc: java: 32,940; xml: 9,418; makefile: 13; sh: 5
file content (93 lines) | stat: -rw-r--r-- 2,308 bytes parent folder | download
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?xml version="1.0"?>

<!-- Test file for XMLConfiguration -->
<testconfig>
    <element>value</element>
    <element2>
        <subelement>
            <subsubelement>I'm complex!</subsubelement>
        </subelement>
    </element2>
    <element3 name="foo">value</element3>
    <test>
        <comment><!-- this value is commented --></comment>
        <cdata><![CDATA[<cdata value>]]></cdata>
        <entity name="foo&quot;bar">1&lt;2</entity>
    </test>
    <mean>This is
<![CDATA[ A long story...]]>
      <submean>really complex structure</submean>
And even longer.
    </mean>

    <!-- non string properties -->
    <test>
        <short>8</short>
    </test>
	
	<!-- list properties -->
	<list>
		<item name="one">one</item>
		<item>two</item>
	</list>
	<list>
		<item name="three">three</item>
		<item>four</item>
		<sublist>
			<item>five</item>
			<item>six</item>
		</sublist>
	</list>
    
    <!-- Comma delimited lists -->
    <split>
      <list1>a,b,c</list1>
      <list2>a\,b\,c</list2>
      <list3 values="a,b,c"/>
      <list4 values="a\,b\,c"/>
    </split>

	<!-- clear tests -->
	<clear>
		<element>value</element>
		<element2 id="element2">value</element2>
		<comment><!-- this value is commented --></comment>
		<cdata><![CDATA[<cdata value>]]></cdata>
		<list>
			<item id="1">one</item>
			<item>two</item>
			<item id="3">three</item>
			<item>four</item>
		</list>
		<list>
			<item>one</item>
			<item id="2">two</item>
			<item>three</item>
			<item id="4">four</item>
		</list>
	</clear>
    
    <!-- Complex property names -->
    <complexNames>
      <my.elem>Name with dot
        <sub.elem>Another dot</sub.elem>
      </my.elem>
    </complexNames>
    
    <!-- An empty element. This should occur in the configuration with an
         empty string as value.
    -->
    <empty/>
    
    <!-- List nodes with attributes -->
    <attrList>
      <a name="x">ABC</a>
      <a name="y">1,2,3</a>
      <a name="u,v,w" test="yes">value1,value2</a>
    </attrList>

    <!-- An attribute with multiple values and escape characters for testing
         splitting when delimiter parsing is disabled.
    -->
    <expressions value="a \|\| (b &amp;&amp; c)|!d"/>
</testconfig>