Source

MyOhData / catalog.xml

Full commit
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<feed xml:base="http://{{ netloc }}/" 
    xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" 
    xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" 
    xmlns="http://www.w3.org/2005/Atom">
    <title type="text">{{ meta['set'] }}</title>
    <id>http://{{ netloc }}/{{ meta['set'] }}</id>
    <updated>{{ timestamp }}</updated>
    <link rel="self" title="{{ meta['set'] }}" href="{{ meta['set'] }}" />
    <m:count>{{ count }}</m:count>
    {% for id, entry in catalog %}
    <entry>
        <id>http://{{ netloc }}/{{ meta['set'] }}({{ id }})</id>
        <title type="text">{{ entry[meta['title']] }}</title>
        <content type="application/xml">
            <m:properties>
            {% for key, type, nullable in meta['properties'] %}
                <d:{{ key }} m:type="{{ type }}">{{ entry[key] }}</d:{{ key }}>
            {% endfor %}
            </m:properties>
        </content>
    </entry>
    {% endfor %}
</feed>