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