On 7/9/05 11:09 PM, "Roland Jungwirth" <[EMAIL PROTECTED]> wrote:

> When going through the Atom specification regarding syntax
> (http://ietf.org/internet-drafts/draft-ietf-atompub-format-11.txt), I
> came to point 4.1.1 "The atom:feed Element". This states that every
> atom:feed element has to have one (and only one) atom:id element but can
> have 0:n atom:entry elements.

The atom:id element as an *immediate* child of atom:feed is the ID for the
feed, while the atom:id element found as children of atom:entry elements are
the ID's of their respective atom:entry. Completely different things.

> "If multiple atom:entry elements with the same atom:id value appear in
> an Atom Feed Document, they represent the same entry."

Consider this (abbreviated) example:

<feed>
    <id>some-id-for-the-feed</id>
    ...
    <entry>
        <id>id-for-entry-1</id>
        ...
    </entry>
    <entry>
        <id>id-for-entry-2</id>
        <updated>2005-09-06T01:00:00Z</updated>
        ...
    </entry>
    <entry>
        <id>id-for-entry-2</id>
        <updated>2005-09-06T01:05:00Z</updated>
        ...
    </entry>
</feed>

This feed contains three atom:entry elements, two of which are actually
separate representations of the same source entry, one at 1.00 AM, and one
from five minutes later.

In practice you probably won't see a mix like the above.

e.

Reply via email to