13 lines
505 B
Django/Jinja
13 lines
505 B
Django/Jinja
<?xml version='1.0' encoding='UTF-8'?>
|
|
<data>
|
|
<result type="{{result.type}}">
|
|
{% if result.errors %}
|
|
<errors>
|
|
{% for item in result.errors %}
|
|
<error type="{{ result.errors[item].type }}" source="{{ result.errors[item].source }}">{{ result.errors[item].remark }}</error>
|
|
{% endfor %}
|
|
</errors>
|
|
{% endif %}
|
|
</result>
|
|
<outbody type="{{ outbody.type }}" compression="{{ outbody.compression if outbody.compression else "none" }}">{{ outbody.remark }}</outbody>
|
|
</data> |