diff --git a/feed.xml b/feed.xml index 64da543..ce3e2d7 100644 --- a/feed.xml +++ b/feed.xml @@ -2269,6 +2269,46 @@ return <type id="{$i}" name="{$type}" count="{$count}" />

So I can now say that I have walked onto a highway to write an XQuery script, while watching a cyclist pass by while shouting "The road is ours! The world belongs to us!" This is a very… interesting day.

]]> + + + Press F for deleted entries on Atom feeds + Sun, 11 Feb 2024 17:11:12 +0100 + tombstones + Tip + https://www.rfc-editor.org/rfc/rfc6721.html + RFC 6721, The Atom "deleted-entry" Element, defines an XML namespace to mark some entries in an Atom feed as having been deleted. Deleting an entry from a feed usually makes no change for feedreaders, as they just assume that a feed only includes a portion of the articles and a deleted article just went over the size limit of the feed. This element is supposed to explicitly tell feedreaders to destroy this entry.

+

I particularly like the URL of this namespace.

+
+
<feed
+  xmlns="http://www.w3.org/2005/Atom"
+  xmlns:at="http://purl.org/atompub/tombstones/1.0"
+>
+  <at:deleted-entry
+    ref="tag:example.org,2032:/entries/1"
+    when="2032-09-11T12:46:00Z"
+  />
+
+  <at:deleted-entry
+    ref="tag:example.org,2032:/entries/2"
+    when="2032-09-11T13:03:00Z"
+  >
+    <at:by>
+      <name>Chuck Norris</name>
+      <email>chucknorris@example.org</email>
+    </at:by>
+    <at:comment>Chuck Norris did not like this post.</at:comment>
+  </at:deleted-entry>
+</feed>
+
Example of deleted entries within an Atom feed
+
+

The specification includes various considerations on ensuring that the entry was indeed deleted by the feed's authors and not someone else, as well as supporting the aggregation of deleted entries from multiple feeds into one. It is also possible to have a separate XML file that only contains the <deleted-entry> tag, which would have a MIME type of application/atomdeleted+xml, with an extension of .atomdeleted. Do check out the RFC if you want to learn more.

+

Of course, this is totally unreliable, since any reader that does not support this namespace will ignore it completely, and some potentially evil readers might even highlight the entry as needing to become another example of the Streisand effect. But in some applications, such as automated processing of Atom feeds for synchronizing some data, knowing for sure that something has been removed can be useful.

+

I searched for code that was referencing this namespace and found that a few YouTube Atom feed parsers do handle deleted-entry elements, so it might be possible that YouTube uses those tags. See here and here.

+

Nothing stops you from adding <at:deleted-entry> elements to RSS feeds as well, just like how other Atom extensions can already be used there. But most feed readers will skip over this namespace in Atom feeds, so it is likely that almost nobody will support this on RSS feeds.

+

And if you were expecting actual tombstones from this namespace, well do know that RSS feeds for obituaries are a thing. You're welcome.

+ ]]>
+