How do I return ALL entries that are singles I'm trying to generate a sitemap and wish to output all the entries that have a section type of 'single' but can't get the the correct syntax.

All of the entries need to return 'single' for {entry.section.type}.

{# This query doesn't work but hopefully helps demo the above question #}

{% for entry in craft.entries.section({'type':'single'}).order('id asc') %}
    &lt;url&gt;
        &lt;loc&gt;{{ entry.url }}&lt;/loc&gt;
        &lt;lastmod&gt;{{ entry.dateUpdated.atom }}&lt;/lastmod&gt;
        &lt;changefreq&gt;weekly&lt;/changefreq&gt;
        {% if entry.section.isHomepage() %}
            &lt;priority&gt;1&lt;/priority&gt;
        {% else %}
            &lt;priority&gt;0.8&lt;/priority&gt;
        {% endif %}
    &lt;/url&gt;    
{% endfor %}


Edit:

This query does work but it's a slow bad way of doing it as it gets EVERY entry and filters after the fact:

{% for entry in craft.entries.order('id asc') if entry.section.type == "single" %}
    &lt;url&gt;
        &lt;loc&gt;{{ entry.url }}&lt;/loc&gt;    
        &lt;changefreq&gt;weekly&lt;/changefreq&gt;
        {% if entry.section.isHomepage() %}
            &lt;priority&gt;1&lt;/priority&gt;
        {% else %}
            &lt;priority&gt;0.8&lt;/priority&gt;
        {% endif %}
    &lt;/url&gt;
{% endfor %}
There's no such method available for craft.entries, at least it's not documented. But you can use craft.sections to get an array of section models and filter them with a conditional within a loop:

{# Get all Section #}
{% set sections = craft.sections.getAllSections() %}

{# Loop through all single sections #}
{% for singleSection in sections if singleSection.type == 'single' %}

    {# Get the first (and only) entry of that section #}
    {% set singleEntry = craft.entries.sectionId(singleSection.id).first %}

    {# Output #}
    {{ singleSection }}
    {{ singleSection.isHomepage() ? '(Home)' : '(not Home)'}}
    {{ singleEntry.dateUpdated.atom }}

{% endfor %}