66032d5f25b5a5d36e4aca30d3c67f2e9d1ee0dc
[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|xml></name>
6         <time><% currentSone.time></time>
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         </profile>
13
14         <posts>
15                 <%foreach currentSone.posts post>
16                 <post>
17                         <id><% post.id|xml></id>
18                         <time><% post.time></time>
19                         <text><% post.text|xml></text>
20                 </post>
21                 <%/foreach>
22         </posts>
23
24         <replies>
25                 <%foreach currentSone.replies reply>
26                 <reply>
27                         <id><% reply.id></id>
28                         <post-id><% reply.post.id|xml></post-id>
29                         <time><% reply.time></time>
30                         <text><% reply.text|xml></text>
31                 </reply>
32                 <%/foreach>
33         </replies>
34
35         <post-likes>
36                 <%foreach currentSone.likedPostIds postId>
37                 <post-like><% postId|xml></post-like>
38                 <%/foreach>
39         </post-likes>
40
41         <known-sones>
42                 <%foreach knownSones sone>
43                 <known-sone>
44                         <sone-id><% sone.id|xml></sone-id>
45                         <sone-key><% sone.requestUri|xml></sone-key>
46                         <sone-name><% sone.name|xml></sone-name>
47                 </known-sone>
48                 <%/foreach>
49         </known-sones>
50
51 </sone>