The Ongage RSS Feed

Table of Contents:

The Ongage RSS Feed

To add an RSS feed, go to “EDIT HTML” and do as following:

  • Click the RSS Content button  in the Edit HTML

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

  • XML Path – path inside the xml to the location you need (as you can see in the source).

(info) 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

  • Below is an example of result we will see in the “Edit HTML” after we insert RSS’s that will show the second title, second link and second description.
{{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}}

For More About RSS in General

See for example: http://cyber.law.harvard.edu/rss/rss.html