d7db0587c2818e9f2de4486399ab718fa871ceb0
[Sone.git] / src / main / resources / templates / backup.xml
1 <?xml version="1.0" encoding="utf-8" ?>
2 <sone>
3
4         <name><% currentSone.name|xml></name>
5         <requestUri><% currentSone.requestUri|xml></requestUri>
6         <insertUri><% currentSone.insertUri|xml></insertUri>
7
8         <profile>
9                 <first-name><% currentSone.profile.firstName|xml></first-name>
10                 <middle-name><% currentSone.profile.middleName|xml></middle-name>
11                 <last-name><% currentSone.profile.lastName|xml></last-name>
12                 <birth-day><% currentSone.profile.birthDay|xml></birth-day>
13                 <birth-month><% currentSone.profile.birthMonth|xml></birth-month>
14                 <birth-year><% currentSone.profile.birthYear|xml></birth-year>
15         </profile>
16
17         <posts>
18                 <%foreach currentSone.posts post>
19                 <post>
20                         <id><% post.id|xml></id>
21                         <time><% post.time></time>
22                         <text><% post.text|xml></text>
23                 </post>
24                 <%/foreach>
25         </posts>
26
27         <replies>
28                 <%foreach currentSone.replies reply>
29                 <reply>
30                         <id><% reply.id></id>
31                         <post-id><% reply.post.id|xml></post-id>
32                         <time><% reply.time></time>
33                         <text><% reply.text|xml></text>
34                 </reply>
35                 <%/foreach>
36         </replies>
37
38         <friends>
39                 <%foreach currentSone.friends friend>
40                 <friend>
41                         <sone-id><% friend.id|xml></sone-id>
42                         <sone-key><% friend.requestUri|xml></sone-key>
43                         <sone-name><% friend.name|xml></sone-name>
44                 </friend>
45                 <%/foreach>
46         </friends>
47
48 </sone>