UW departments may publish their Web content (such as news headlines or resource listings) on MyUW via an XML file composed of a number of related information items. MyUW supports two XML-based formats for syndicating content that is updated dynamically:
In this document, we first describe the specific components in Atom and RSS formats that MyUW requires and displays and then outline the process for publishing your channel on MyUW.
Below is an example of a single-entry Atom feed document. The elements required by MyUW are boldfaced.
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>UW in the Media</title>
<link href="http://uwnews.org/mock/atom.xml"/>
<updated>2008-07-14T16:54:34Z</updated>
<author>
<name>UW Office of News and Information</name>
</author>
<id>http://uwnews.org/mock/atom.xml</id>
<entry>
<title>Surprises surfaced in 40-month eruption</title>
<link href="http://www.columbian.com/news/localNews/2008/07/07142008_Surprises-surfaced-in-40month-eruption.cfm"/>
<id>http://www.columbian.com/news/localNews/2008/07/07142008_Surprises-surfaced-in-40month-eruption.cfm</id>
<updated>2008-07-14T03:19:00Z</updated>
<summary>Now, Mount St. Helens' 40-month encore is over -- last week, after five months of silence at the crater, scientists officially declared an end to the eruption of 2004-08. Steve Malone, research professor of Earth and space sciences, is quoted.</summary>
<author>Vancouver Columbian</author>
</entry>
</feed>
The <feed> element MUST contain these child elements as specified below:
A <feed> element may contain a number of <entry>s. An entry MUST have:
All <updated> date-time values MUST conform to the specification of ISO Standard 8601.
MyUW ignores the <source> element of an Atom entry because the Rome SyndEntry model (which MyUW uses for parsing) does not provide access to it. Please use the <author> element to present author and/or source information.
The content is displayed on MyUW as follows:
MyUW can be configured not to display the author and the summary (or the description in RSS) even they are present in the feed.
Below is the RSS feed document of the same content in the previous example. The elements required by MyUW are boldfaced.
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>UW in the Media</title>
<description>This RSS news feed from uwnews.org, the University of Washington Office of News and Information, includes recent stories about the University of Washington in the media.</description>
<link>http://uwnews.org/apps/uwnews/public/rss.aspx?q=uwnUwitm&numToShow=1</link>
<pubDate>Mon, 14 Jul 2008 16:54:34 GMT</pubDate>
<lastBuildDate>Mon, 14 Jul 2008 16:54:34 GMT</lastBuildDate>
<copyright>(c)2008 University of Washington News and Information ...</copyright>
<item>
<title>Surprises surfaced in 40-month eruption</title>
<link>http://www.columbian.com/news/localNews/2008/07/07142008_Surprises-surfaced-in-40month-eruption.cfm</link>
<description>Now, Mount St. Helens' 40-month encore is over -- last week, after five months of silence at the crater, scientists officially declared an end to the eruption of 2004-08. Steve Malone, research professor of Earth and space sciences, is quoted.</description>
<author>Vancouver Columbian</author>
<pubDate>Mon, 14 Jul 2008 03:19:00 GMT</pubDate>
<guid>http://www.columbian.com/news/localNews/2008/07/07142008_Surprises-surfaced-in-40month-eruption.cfm</guid>
</item>
</channel>
</rss>
The <channel> element MUST contain these child elements:
Because the Rome SyndFeed model (which MyUW uses for parsing) does not provide access to the channel <lastBuildDate>, which is the last time the content of the channel changed, MyUW currently uses the channel <pubDate> for validating its content cache. Therefore please specify the last modified date and time in the <pubDate> element.
A channel may contain a number of <item>s. An item MUST have:
If you need to embed HTML tags in the description text, such as a link, the tag must be entity-encoded by replacing the less-than sign with < or < and the greater-than sign with > or >.
MyUW ignores the <source> element of an RSS item because the Rome SyndEntry model (which MyUW uses for parsing) does not provide access to it. Please use the <author> element to present author and/or source information.
All <pubDate> values MUST conform to the Date and Time Specification of RFC 822.
Please follow these steps to create your new channel on MyUW:
Contact MyUW Copyright© 1998-2008, University of Washington. MyUW® is a registered trademark of the University of Washington. |