Example 6

RSS example.

Return home


This example is a more real-world example. It retrieves an RSS feed from one of three user-selected sources, parses the feed and displays the headlines in clickable form. This demonstrates retrieving XML from a server and dealing with it on the client.

Note that the RSS feed XML is actually stored as files within this webapp. That is because some browsers will not allow you to retrieve content with XMLHttpRequest outside the domain of the document trying to do the call. Some browsers will allow it with a warning though.