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