【发布时间】:2011-06-16 19:38:24
【问题描述】:
我的文件夹中有一个 RSS 数据 XML 文件。我必须将新数据附加到 RSS XML 文件中。我只需要用 PHP 来做。我有来自 Web 服务的 rss 数据(项目、标题、url、desc)。我必须附加到具有先前数据的现有 rss xml 文件。
RSS数据格式是这样的
<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>
我想动态添加另一个项目,仅使用 PHP。我怎样才能做到这一点?
【问题讨论】:
标签: php