27b9c201b3f6ea72e945a53eba9aaea6f6806bf4
[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         <known-sones>
36                 <%foreach knownSones sone>
37                 <known-sone>
38                         <sone-id><% sone.id|xml></sone-id>
39                         <sone-key><% sone.requestUri|xml></sone-key>
40                         <sone-name><% sone.name|xml></sone-name>
41                 </known-sone>
42                 <%/foreach>
43         </known-sones>
44
45 </sone>