6

My reader application (inoreader) fails to subscribe to the Stack Overflow blog.

See validation here

This feed does not validate.

line 36, column 54: XML parsing error: :36:54: undefined entity

<title>The AI assistant trained on your company&rsquo;s data</title>

This is the suspicious feed item:

  <item>
      <guid isPermaLink="false">a60f0d2d-21eb-4ef1-b3e6-4a438a9227b8</guid>
      <title>The AI assistant trained on your company&rsquo;s data</title>
      <link>https://stackoverflow.blog/2023/11/17/the-ai-assistant-trained-on-your-company-s-data/</link>
      <pubDate>Fri, 17 Nov 2023 08:40:00 GMT</pubDate>
      <description><![CDATA[Today&rsquo;s guest is Joel Hellermark, founder and CEO of Sana, an AI-powered end-to-end learning platform. He talks with Ben and Ryan about a polymath Renaissance, what regulation might look like in the AI space, the intersection of AI and neuroscience, and why AI assistants aren&rsquo;t turning into Terminators anytime soon.]]></description>
      <dc:creator><![CDATA[Eira May]]></dc:creator>
      <category><![CDATA[podcast]]></category>
      <category><![CDATA[ai-assistant]]></category>
      <category><![CDATA[ai]]></category>
      <category><![CDATA[se-tech]]></category>
      <category><![CDATA[se-stackoverflow]]></category>
  </item>
6
  • 1
    The problem is the &rsquo; html character in the title. Seems to be a common problem with rss since it's based on xml which doesn't handle the & well.
    – BDL
    Commented Nov 25, 2023 at 15:25
  • The last one I have (Thunderbird (works great except very poor usability) as an RSS reader) is "Cloudflare Workers have a new skill: AI inference-as-a-service" (a podcast episode. 2023-11-21). RSS feed URL: https://feeds.simplecast.com/XA_851k3 Commented Nov 25, 2023 at 15:45
  • cont' - Isn't that the last one? Commented Nov 25, 2023 at 15:51
  • What RSS reader, feed URL, etc. do you use? What is the last one that worked (incl. date and URL for the blog post)? Can you add details to the question? (But *** *** *** *** *** without *** *** *** *** *** "Edit:", "Update:", or similar - the question should appear as if it was written right now) Commented Nov 25, 2023 at 15:53
  • Cloudflare Workers have a new skill: AI inference-as-a-service reference (2023-11-21). Commented Nov 25, 2023 at 16:12
  • Thunderbird's reader also got the newer 2023-11-28 post ("Can GenAI 10X developer productivity?"). But not the newest from today. Perhaps the information in the RSS feed is only updated once per day? Commented Nov 29, 2023 at 20:32

1 Answer 1

3

XML only pre-defines the character entities &amp;, &lt;, &gt;, &apos;, and &quot;. Since the RSS DTD does not define any additional character entities, these 5 are the only ones that can be used.

So, this is indeed a bug in the feed. The correct title for that feed entry should be one of these three:

  • <title>The AI assistant trained on your company’s data</title>,
  • <title>The AI assistant trained on your company&#x2019;s data</title>, or
  • <title>The AI assistant trained on your company&#8217;s data</title>.

I mean, what's the point of declaring the encoding of the feed as <?xml version="1.0" encoding="UTF-8"?> and then not using UTF-8?

2
  • The example in the question is from 2023-11-17. I got the newest blog post, 2023-11-21, in Thunderbird (it has a great built-in RSS reader (though the usability is atrocious - very unintuitive. You essentially have to write your own manual to use it effectively (the official documentation is severely lacking))). Perhaps the Thunderbird RSS reader is more tolerant of deviations? Commented Nov 27, 2023 at 20:23
  • 1
    It wouldn't surprise me if that encoded form of the quote is simply data being spewed into the XML as-is. That's how it was stored. And perhaps there was even a secondary assumption tagged onto it that if you wrap something in a CDATA block, you'd be safe from XML's earthshattering strictness :) I once had to consume the XML feed from a digital TV guide service which combined data from different other streams. Literally the worst thing I ever had to do.
    – Gimby
    Commented Nov 28, 2023 at 15:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .