aboutsummaryrefslogtreecommitdiffstats
path: root/view/poco_xml.tpl
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-27 00:57:19 -0700
committerFriendika <info@friendika.com>2011-10-27 00:57:19 -0700
commit31502207bd8361a5fa27cb10ea037e4cca5a5678 (patch)
tree5c185598ea8dfa8923075f986f3c986bbe1afdbe /view/poco_xml.tpl
parentfaa078b83f57b74183ee35165f0f9d7bac9e6bde (diff)
downloadvolse-hubzilla-31502207bd8361a5fa27cb10ea037e4cca5a5678.tar.gz
volse-hubzilla-31502207bd8361a5fa27cb10ea037e4cca5a5678.tar.bz2
volse-hubzilla-31502207bd8361a5fa27cb10ea037e4cca5a5678.zip
more poco spec compliance
Diffstat (limited to 'view/poco_xml.tpl')
-rw-r--r--view/poco_xml.tpl21
1 files changed, 21 insertions, 0 deletions
diff --git a/view/poco_xml.tpl b/view/poco_xml.tpl
new file mode 100644
index 000000000..59b8e8a95
--- /dev/null
+++ b/view/poco_xml.tpl
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<response>
+
+{{ if $response.sorted }}<sorted>$response.sorted</sorted>{{ endif }}
+{{ if $response.filtered }}<filtered>$response.filtered</filtered>{{ endif }}
+{{ if $response.updatedSince }}<updatedSince>$response.updatedSince</updatedSince>{{ endif }}
+{{ if $response.startIndex }}<startIndex>$response.startIndex</startIndex>{{ endif }}
+{{ if $response.itemsPerPage }}<itemsPerPage>$response.itemsPerPage</itemsPerPage>{{ endif }}
+{{ if $response.totalResults }}<totalResults>$response.totalResults</totalResults>{{ endif }}
+
+{{ for $response.entry as $ent }}
+<entry>
+{{ if $ent.id }}<id>$ent.id</id>{{ endif }}
+{{ if $ent.displayName }}<displayName>$ent.displayName</displayName>{{ endif }}
+{{ if $ent.preferredName }}<preferredName>$ent.preferredName</preferredName>{{ endif }}
+{{ if $ent.urls }}<urls><value>$ent.urls.value</value><type>$ent.urls.type</type></urls>{{ endif }}
+{{ if $ent.photos }}<photos><value>$ent.photos.value</value><type><$ent.photos.type></type></photos>{{ endif }}
+</entry>
+{{ endfor }}
+
+</response>