SofaKng
SofaKng

Reputation: 1093

Can I use JavaScript to generate an RSS (XML) page?

I'm looking to retrieve JSON (from a third-party website) and convert it into a valid RSS/XML feed.

Is this possible?

Can RSS readers read pages that are basically only javascript generating a web page?

Are there other options to convert a JSON web page to RSS? (ie. retrieve the JSON using an HTTP request and then return valid RSS)

Upvotes: 0

Views: 892

Answers (2)

Julien Genestoux
Julien Genestoux

Reputation: 32952

You can pretty much convert anything into anything if you have enough input data :) The question is what are you trying to achieve?

If you want persistency, you will very likely have to do that from a server side.

Upvotes: 0

Pekka
Pekka

Reputation: 449385

Can RSS readers read pages that are basically only javascript generating a web page?

No. RSS is a XML-based file format; as far as I know, it does not support Javascript in any form.

You will need server-side scripting to do the conversion.

Upvotes: 2

Related Questions