RSS Export
RSS Export
did anyone made a script to export to an RSS Xml in order to be able to see the news using RSS Reader
en francais
quelqu'un a fait un script d'export vers un fichier xml de type RSS?
je pense que ca peut etre interessant
merci
je pense que ca peut etre interessant
merci
-
- Posts: 12
- Joined: 2004-03-02 23:30:47
- Location: Orsay (91)
- Contact:
rss simple
use the following template to get a simple RSS resource file that you can upload on your web server or just use locally ...
rename the target file (movies.html) to movies.rss or movies.xml and put in on your web server or just open it up using your favourite feed reader. if your web browser doesn't automatically recognize the resource as RSS feed, try adding the following to your .htaccess configuration file in the directory where you put/uploaded the 'movies.rss'
a more sophisticated rss format would be nice, e.g. offering inline html with more infos and pictures -- when time permits i'll be back on stage.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns="http://purl.org/rss/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<channel rdf:about="http://www.example.org/movies.rss">
<title>movies</title>
<description>movies</description>
<link>http://www.example.org/movies.rss</link>
</channel>
$$ITEM_BEGIN
<item rdf:about="$$ITEM_URL">
<title><![CDATA[[$$ITEM_RATING] $$ITEM_ORIGINALTITLE ($$ITEM_YEAR)]]></title>
<description><![CDATA[$$ITEM_DESCRIPTION]]></description>
<link>$$ITEM_URL</link>
<dc:creator>$$ITEM_DIRECTOR</dc:creator>
</item>
$$ITEM_END
</rdf:RDF>
rename the target file (movies.html) to movies.rss or movies.xml and put in on your web server or just open it up using your favourite feed reader. if your web browser doesn't automatically recognize the resource as RSS feed, try adding the following to your .htaccess configuration file in the directory where you put/uploaded the 'movies.rss'
Code: Select all
AddType text/xml rss