You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

dtd for Apple Podcasts for xmllint

I'm a do-it-yourselfer Podcaster. I'm techy enough that I hand-wrote and update my own rss.xml. I even wrote a Web App to assist me so that I won't have to hand-edit, because hand-editing is error prone. The problem is that although the web app works, the output is lacking in indentation. I thought I could solve that by using the format option of xmllint. But xmllint throws namespace errors because the itunes dtd does not exist.

I realize there may be more than one way to solve this issue. Does anyone have any recommendations?

Posted on Jan 20, 2025 10:18 AM

Reply
1 reply

Jan 20, 2025 1:45 PM in response to wanza543

Indenting some lines may look neater but it doesn't matter. Some feeds I've seen are all on one line and work perfectly well (though they're a pig to read or diagnose). If xmllint is removing the required iTunes declaration (if that's what you mean) it isn't really much use. As you are presumably aware, this line is required in the top of the feede:


<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">


If you want to diagnose a feed or check its validity the best place is


https://validator.w3.org/feed/


It's not perfect, and occasionally throws up errors which don't matter, but it's a useful tool.

dtd for Apple Podcasts for xmllint

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.