Re:Now Is the Perfect Time for an RSS Renaissance
by parvenu74 on Monday April 23, 2018 @05:11PM
(#16907441)
There's nothing "wrong" with XML but with JSON there's no need to add another 5 pounds (2.2 KG) of JavaScript to convert XML to JavaScript objects. For any other language it doesn't matter since you're re-mapping to objects, most likely, but with JavaScript eating the web (even on the server side) I think the question should be "why shouldn't this be JSON" as a default. In the end either way works. I would love to see Google Reader resurrected... stopped reading blogs and switched to Twitter and Hacker News once Reader died.
[ Parent
| on HN ]
Re:Now Is the Perfect Time for an RSS Renaissance
by goalieca on Monday April 23, 2018 @05:36PM
(#16907654)
> There's nothing "wrong" with XML but with JSON there's no need to add another 5 pounds (2.2 KG) of JavaScript to convert XML to JavaScript objects
Non web-dev guy here, but browsers have excellent XML parses out there that can turn XML into a document object with a fully fledged query language. Why does it need to be a JS object?
Re:Now Is the Perfect Time for an RSS Renaissance
by jklinger410 on Monday April 23, 2018 @06:03PM
(#16907862)
I have an old wordpress blog that I would love to introduce to whatever XML reader you would suggest.
Re:Now Is the Perfect Time for an RSS Renaissance
by seangrogg on Monday April 23, 2018 @05:38PM
(#16907675)
Alternatively, if all you're doing is supporting RSS, you could opt to just use the DOMParser API (native to most browsers) and navigate a DOMTree which is a type of JavaScript Object already...