This library has not yet been ported to the New Pico Engine |
The Kynetx Rule Language has native support for handling and processing RSS feeds. The KRL convenience functions can be grouped into feed, channel and item functions.
The rss:version() function returns the version of the rss feed. The rss:version() function takes in the following arguments:
The following is an example of rss:version
pre { rssVersion = rss:version(rss_data_set); } |
the rss:items() function returns an array of all the RSS items in the feed. The rss:items function takes in the following arguments:
The following is an example of rss:items()
pre { rssItems = rss:items(rss_data_set); } |
the rss:first() function returns the first item from the channel feed. The rss:first function takes in the following arguments:
The following is an example of rss:items()
pre { rssFirstItem = rss:first(rss_data_set); } |
the rss:last() function returns the last item from the channel feed. The rss:last function takes in the following arguments:
The following is an example of rss:last()
pre { rssLastItem = rss:last(rss_data_set); } |
The rss:index() function returns the nth item from the feed. The rss:index function takes in the following arguments:
The following is an example of rss:index()
pre { rssThirdItem = rss:index(rss_data_set, 3); } |
The rss:random() function returns a random item from the feed. The rss:random function takes in the following arguments:
The following is an example of rss:random()
pre { rssRandomItem = rss:random(rss_data_set); } |
The rss:channel() function returns values from the various channel elements. The rss:channel function takes in the following arguments:
The following is an example of rss:channel()
pre { rssChannelTitle = rss:channel(rss_data_set, "title"); } |
The rss:item() function returns the desired rss item
The following is an example of rss:item()
pre { rssTitle = rss:item(rss_data_set, "title"); } |