<?xml version="1.0" encoding="UTF-8"?>
{% load com %}
{% autoescape off %}
<co_ment_text>
<title>{{ title }}</title>
<created>{{ created|date:"c" }}{{ tz|leading_zeros:"2" }}</created>
<modified>{{ modified|date:"c" }}{{ tz|leading_zeros:"2" }}</modified>
<name>{{ name }}</name>
<email>{{ email }}</email>
<format>{{ format }}</format>
<content><![CDATA[{{ content }}]]></content>
{% if tags %}
<tags>{{ tags }}</tags>
{% endif %}
{% if comments %}
<comments>
{% for c in comments %}
<comment>
<id>{{ c.id }}</id>
{% if c.reply_to_id %}
<parent>{{ c.reply_to_id }}</parent>
{% endif %}
<title>{{ c.title }}</title>
<state>{{ c.state }}</state>
<deleted>{{ c.deleted }}</deleted>
<created>{{ c.created|date:"c" }}{{ tz|leading_zeros:"2" }}</created>
<modified>{{ c.modified|date:"c" }}{{ tz|leading_zeros:"2" }}</modified>
<name>{{ c.name }}</name>
<email>{{ c.email }}</email>
<format>{{ c.format }}</format>
<content><![CDATA[{{ c.content }}]]></content>
<content_html><![CDATA[{{ c.content_html }}]]></content_html>
{% if c.tags %}
<tags>{{ c.tags }}</tags>
{% endif %}
<start_wrapper>{{ c.start_wrapper }}</start_wrapper>
<end_wrapper>{{ c.end_wrapper }}</end_wrapper>
<start_offset>{{ c.start_offset }}</start_offset>
<end_offset>{{ c.end_offset }}</end_offset>
</comment>
{% endfor %}
</comments>
{% endif %}
{% if attachments %}
<attachments>
{% for a in attachments %}
<attachment>
<key>{{ a.key }}</key>
<data>{{ a.data }}</data>
</attachment>
{% endfor %}
</attachments>
{% endif %}
</co_ment_text>
{% endautoescape %}