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
<rss version="2.0">
<channel>
<title>My Site Feed</title>
<link>http://www.mysitethathasfeed.com/feed/</link>
<description>
A nice site that features a feed.
</description>
<item>
<title>Launched!</title>
<link>http://www.mysitethathasfeed.com/feed/view.php?ID=launched</link>
<description>
We just launched the site! Come join the celebration!
</description>
</item>
</channel>
</rss>
I want to add another item dynamically a using PHP only. How can I do that?