XML is a markup language for documents that contain structured information, information that contains both content (words, pictures and so on) and information about what role that the content plays (for example, content in a section that is marked as a header will have a different purpose than content that is located in a section that is marked as a footer). The XML specification defines a standard way to add this markup of content to documents.
The first section of the XML file defines the XML version and recognizes the file as using a certain RDF (Resource Description Framework), which describes the relationship of the data that will be contained within the file to follow.
|
<?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://my.netscape.com/rdf/simple/0.9/"> |
The second XML element on the RSS file contains the title, link and a short description of the remote site from which dynamic information is to be pulled.
|
<channel> <title>futurists.com</title> <link>http://futurists.com</link> <description>the news source for information about the future of technology </description> </channel> |
The next element is an image element which can be used to display an image accompanied by a link. If a user clicks on this image, the page specified in the link portion of this element will be opened in the user's browser.
|
<image> <title>futurists.com</title> <url>http://futurists.com/images/fut.jpg</url> <link>http://futurists.com</link> </image> |
Normally, the bulk of an RSS file will contain multiple dynamic item elements. There are usually numerous item elements in an RSS file. These elements contain the actual channel content which is updated as new events occur. Each item contains a title and a link to the location where the actual content, in the form of a web page, can be viewed.
|
<item> <title>New technology discovered</title> <link>http://futurists.com/news/2001/01/21/18005.html</link> </item> |
After the item elements, the end of the file may be reached. Before this point, any other dynamic entities that the remote server would like to add may also be included in the RSS file.
|
</rdf:RDF> |
myMUSC then displays the information that it receives within the content box on your myMUSC page. In this manner, myMUSC can ensure that the design and format of the information received from multiple different servers delivering dynamic RSS feeds will look consistant and retain a sense of order on your page.