xref: /PHP-5.5/ext/wddx/tests/wddx.xml (revision 016a3919)
1<?xml version='1.0'?>
2<!DOCTYPE wddxPacket SYSTEM 'wddx_0100.dtd'>
3<wddxPacket version='1.0'>
4<header/>
5	<data>
6        	<struct>
7                     <var name='aNull'>
8                         <null/>
9                     </var>
10                     <var name='aString'>
11                         <string>a string</string>
12                     </var>
13                     <var name='aNumber'>
14                         <number>-12.456</number>
15                     </var>
16                     <var name='aDateTime'>
17                         <dateTime>1998-06-12T04:32:12+00</dateTime>
18                     </var>
19                     <var name='aDateTime2'>
20                         <dateTime>1980-06-12T04:32:12+00</dateTime>
21                     </var>
22                     <var name='aDateTime3'>
23                         <dateTime>2040-06-12T04:32:12+00</dateTime>
24                     </var>
25                     <var name='aBoolean'>
26                         <boolean value='true'/>
27                     </var>
28                     <var name='anArray'>
29                         <array length='2'>
30                             <number>10</number>
31                             <string>second element</string>
32                        </array>
33                     </var>
34                     <var name='aBinary'>
35                         <binary length='11'>YmluYXJ5IGRhdGE=</binary>
36                     </var>
37                     <var name='anObject'>
38                         <struct>
39                             <var name='s'>
40                                 <string>a string</string>
41                             </var>
42                             <var name='n'>
43                                 <number>-12.456</number>
44                             </var>
45                         </struct>
46                     </var>
47		     <var name='aRecordset'>
48                         <recordset rowCount='2' fieldNames='NAME,AGE'>
49				<field name='NAME'>
50                        		 <string>John Doe</string>
51                        		 <string>Jane Doe</string>
52				</field>
53				<field name='AGE'>
54					<number>34</number>
55					<number>31</number>
56				</field>
57			</recordset>
58                 </struct>
59	</data>
60</wddxPacket>
61