5 ms·
I love RSS/atom feeds. One thing I'm wondering though, RSS is is XML based. Most things are/have moved to JSON (RPC really more than REST). My question is why i
by account-5 4y ago
I love RSS/atom feeds. One thing I'm wondering though, RSS is is XML based. Most things are/have moved to JSON (RPC really more than REST). My question is why is XML still good for this use case? Genuinely interested.
- ilyt 4y agoIt's not better or worse, it was just first. I guess having schemas in standard rather than some kind of addon like for JSON is a benefit but not really that relevant, schema doesn't help all that much if you make bad RSS stream anyway.
- ZeroGravitas 4y agohttps://www.jsonfeed.org/ https://www.jsonfeed.org/ Is an attempt to move these to json.
- dinosaurdynasty 4y agoJSON Feed is a thing, not many websites that support RSS support it however.
- cxr 4y agoLittle-known trick: You can add an `xml-stylesheet` processing instruction at the top of your XML-based feed format to transform it via XSLT into HTML. When viewed in a Web browser, it will look like an ordinary Web page, but in reality it's actually RSS/Atom consumable by anyone's feed reader. Nobody has to hunt for the URL to the RSS/Atom feed, because the URL of the top-level post index for your blog is the URL to the RSS/Atom feed. You also don't have to set up your static site generator to generate a separate feed file. Neat! Can't do that with JSON.
- blep_ 4y agoIt exists, it's widely supported, and it's good enough. There's no reason it has to be XML, but there's no good enough argument against it to justify fragmenting an already shaky ecosystem.