Skip to content
Advertisement

How can I append RSS data to the existing RSS XML file?

I have an RSS data XML file existing on the folder. I have to append new data to the RSS XML file. I need to do it with PHP only. I have rss data (item, title, url, desc) coming from web service. I have to append to the existing rss xml file which has previous data.

RSS data format is like this

JavaScript

I want to add another item dynamically a using PHP only. How can I do that?

Advertisement

Answer

Have a look at: Document Object Model

And here is something, which might get you started:

JavaScript

You’ll need write-access to the xml file, of course!

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement