Test that a missing <posts> section does not cause a parse error.
[Sone.git] / src / test / resources / sone-parser / missing-posts.xml
1 <?xml version="1.0" encoding="utf-8" ?>
2 <sone>
3
4         <time>1382419919000</time>
5         <protocol-version>0</protocol-version>
6
7         <client>
8                 <name>Sone</name>
9                 <version>0.8.7</version>
10         </client>
11
12         <profile>
13                 <first-name>First</first-name>
14                 <middle-name>M.</middle-name>
15                 <last-name>Last</last-name>
16                 <birth-day>22</birth-day>
17                 <birth-month>10</birth-month>
18                 <birth-year>2013</birth-year>
19                 <avatar>96431abe-3add-11e3-8a46-67047503bf6d</avatar>
20                 <fields>
21                         <field>
22                                 <field-name>Field1</field-name>
23                                 <field-value>Value1</field-value>
24                         </field>
25                         <field>
26                                 <field-name>Field2</field-name>
27                                 <field-value>Value2</field-value>
28                         </field>
29                 </fields>
30         </profile>
31
32         <replies>
33                 <reply>
34                         <id>f09fa448-3adb-11e3-a783-ab54a11aacc4</id>
35                         <post-id>bbb7ebf0-3adb-11e3-8a0b-630cd8f21cf3</post-id>
36                         <time>1382420224000</time>
37                         <text>Talking to myself.</text>
38                 </reply>
39                 <reply>
40                         <id>0a376440-3adc-11e3-8f45-c7cc157436a5</id>
41                         <post-id>11ebe86e-3adc-11e3-b7b9-7f2c88018a33</post-id>
42                         <time>1382420271000</time>
43                         <text>Talking to somebody I can't see.</text>
44                 </reply>
45         </replies>
46
47         <post-likes>
48                 <post-like>bbb7ebf0-3adb-11e3-8a0b-630cd8f21cf3</post-like>
49                 <post-like>305d85e6-3adc-11e3-be45-8b53dd91f0af</post-like>
50         </post-likes>
51
52         <reply-likes>
53                 <reply-like>f09fa448-3adb-11e3-a783-ab54a11aacc4</reply-like>
54                 <reply-like>3ba28960-3adc-11e3-93c7-6713d170f44c</reply-like>
55         </reply-likes>
56
57         <albums>
58                 <album>
59                         <id>6a73c6e6-3adc-11e3-b091-577b10a725ad</id>
60                         <title>Album1</title>
61                         <description>First album with stuff.</description>
62                         <album-image>e3707102-3adc-11e3-b828-9f4de99f0bc4</album-image>
63                         <images>
64                                 <image>
65                                         <id>8966f69a-3adc-11e3-802d-0f57b63c8809</id>
66                                         <creation-time>1382420473000</creation-time>
67                                         <key>SSK@JvW9oZ8AriNGbwBosJD1gyMdiMHc5AgSmhNBU1CmAb8,na1IPpMcYiZLaWSv9EWq9NcDPPGplQBw8kJsLobXIG4,AQACAAE/8966f69a-3adc-11e3-802d-0f57b63c8809.jpg</key>
68                                         <title>Stuff</title>
69                                         <description>Yes, it's stuff!</description>
70                                         <width>640</width>
71                                         <height>480</height>
72                                 </image>
73                                 <image>
74                                         <id>e3707102-3adc-11e3-b828-9f4de99f0bc4</id>
75                                         <creation-time>1382420624000</creation-time>
76                                         <key>SSK@dM1er7A9tG242bG-Xxy0kmprD7YkqEDE9mrZ98C~L3E,Np3iWiaGyd~er86edP9ndpH3pPKk2owDmAT2TQZNBA0,AQACAAE/e3707102-3adc-11e3-b828-9f4de99f0bc4.jpg</key>
77                                         <title>More Stuff</title>
78                                         <description>Yes, it's more stuff!</description>
79                                         <width>640</width>
80                                         <height>360</height>
81                                 </image>
82                         </images>
83                 </album>
84                 <album>
85                         <id>1e73b52a-3add-11e3-ba45-cb0c28da9c2a</id>
86                         <parent>6a73c6e6-3adc-11e3-b091-577b10a725ad</parent>
87                         <title>Nested Album</title>
88                         <description>Nested album with stuff.</description>
89                         <album-image>312182ba-3add-11e3-bd76-13e7278f0161</album-image>
90                         <images>
91                                 <image>
92                                         <id>312182ba-3add-11e3-bd76-13e7278f0161</id>
93                                         <creation-time>1382420756000</creation-time>
94                                         <key>SSK@0rpD4gL8mszav2trndhIdKIxvKUCNAe2kjA3dLV8CVU,2KP8WDSaQvyJ16pXBHQrE1vj~fAaYPIsk35lM-ec4B0,AQACAAE/312182ba-3add-11e3-bd76-13e7278f0161.jpg</key>
95                                         <title>Other Stuff</title>
96                                         <description>Yes, it's other stuff!</description>
97                                         <width>640</width>
98                                         <height>272</height>
99                                 </image>
100                         </images>
101                 </album>
102                 <album>
103                         <id>8a04b5fa-3add-11e3-afe2-676e721c04bd</id>
104                         <title>Avatars</title>
105                         <description>The avatar collection.</description>
106                         <album-image>96431abe-3add-11e3-8a46-67047503bf6d</album-image>
107                         <images>
108                                 <image>
109                                         <id>96431abe-3add-11e3-8a46-67047503bf6d</id>
110                                         <creation-time>1382420923000</creation-time>
111                                         <key>SSK@v6Js3ZJBMB23IB0JvdgiPynHQBYEvkFSi3~D8RDdj3s,FfLhjRC4bqYLHVexT33Pv6agXl6Ft~TDhX1jIM5w2n4,AQACAAE/96431abe-3add-11e3-8a46-67047503bf6d.png</key>
112                                         <title>Avatar 1</title>
113                                         <description>The first avatar.</description>
114                                         <width>64</width>
115                                         <height>64</height>
116                                 </image>
117                         </images>
118                 </album>
119         </albums>
120
121 </sone>