Table of Contents:
To add an RSS feed, go to “EDIT HTML” and do as following:
The following popup will open:
RSS URL - is the full http path to the rss.
e.g:
http://feeds.bbci.co.uk/news/health/rss.xml
The expected value of the XML Path should be in XPath syntax. When using RSS, the path usually starts with "/rss/".
For example:
<rss xmlns:media="http://xxxxxxx"> <channel> <item> <title>A</title> <description>B</description> <link>C</link> </item> <item> <title>D</title> <description>E</description> <link>F</link> </item> </channel> </rss> |
e.g: To get the first title (title A from the example) from the first item, write:
/rss/channel/item[1]/title
The same can be done for link
e.g: To get the first link (link C from the example) from the first item, write:
/rss/channel/item[1]/link
{{ocx_rss:%2Frss%2Fchannel%2Fitem%5B2%5D%2Ftitle:http%3A%2F%2Ffeeds.bbci.co.uk%2Fnews%2Fhealth%2Frss.xml}} {{ocx_rss:%2Frss%2Fchannel%2Fitem%5B2%5D%2Flink:http%3A%2F%2Ffeeds.bbci.co.uk%2Fnews%2Fhealth%2Frss.xml}} {{ocx_rss:%2Frss%2Fchannel%2Fitem%5B2%5D%2Fdescription:http%3A%2F%2Ffeeds.bbci.co.uk%2Fnews%2Fhealth%2Frss.xml}} |
See for example: http://cyber.law.harvard.edu/rss/rss.html