root/trunk/examples/xml/defines-constructor.xml

Revision 109, 0.7 kB (checked in by mikey, 1 year ago)

added constructor cdata example and test

Line 
1 <defines>
2   <tag name="color" type="ConstructorColor" keyAttribute="id">
3     <constructor>
4       <attribute name="red" type="integer"/>
5       <attribute name="green" type="integer"/>
6       <attribute name="blue" type="integer"/>
7     </constructor>
8   </tag>
9
10   <tag name="color2" type="ConstructorColor">
11     <constructor>
12       <child name="red"/>
13       <child name="green"/>
14       <child name="blue"/>
15     </constructor>
16   </tag>
17
18   <tag name="red" type="integer" setter="__ignore"/>
19   <tag name="green" type="integer" setter="__ignore"/>
20   <tag name="blue" type="integer" setter="__ignore"/>
21
22   <tag name="color3" type="CDataColor">
23     <constructor>
24       <cdata type="string"/>
25     </constructor>
26   </tag>
27 </defines>
Note: See TracBrowser for help on using the browser.