RSS 2.0 XSD Schema

Published Sunday, March 07, 2004 7:04 PM

The following is an XSD representation of the RSS 2.0 specification.  I did my best to adhere precisely to the specification, but please let me know if you find any discepencies.  This XSD schema can be used to facilitate coding and RSS validation.


Click Here to Download the Schema


Update: There was an odd character in one of the descriptions.  I removed it.  This may have caused problems in some editors.
Filed under: ,

Comments

# Jim Hughes said on Tuesday, March 09, 2004 4:19 PM

Westin, thanks for the update as well as posting it as a file link instead of scrape and paste!

It now generates correctly using VS2003.

# TrackBack said on Tuesday, March 09, 2004 6:27 PM

Berkman Center

# TrackBack said on Thursday, August 05, 2004 4:56 PM

ASP.Net Forums: Community Start Kit

# Making Noise » Blog Archive » An XSD for RSS said on Tuesday, February 06, 2007 1:26 PM

PingBack from http://noise.youchill.com/?p=10

# rascunho » Blog Archive » links for 2007-03-18 said on Sunday, March 18, 2007 4:22 PM

PingBack from http://blog.bruno.locaweb.com.br/2007/03/18/links-for-2007-03-18/

# Jason Whitehorn said on Tuesday, June 26, 2007 11:07 PM

Parsing RSS From C#

# Andreas said on Thursday, July 19, 2007 5:25 AM

hmm. this schema does not include extensions from another namespace, as specified in the rss 2.0 spec.

# Remondo on Microsoft .Net » Blog Archive » RSS 2.0 XSD Schema said on Saturday, January 26, 2008 7:25 AM

Pingback from  Remondo on Microsoft .Net  » Blog Archive   » RSS 2.0 XSD Schema

# Cory Albrecht said on Monday, November 10, 2008 4:07 PM

This schema, since it uses <xs:sequence> will require everything to be in exactly that order. An RSS feed which has

...

<channel>

 <link>...</link>

 <title>...</title>

 <description>...</description>

 ...

</channel>

...

will be marked as invalid if using this schema because <title> is not the first child node of <channel>.

AFAIK, the RSS spec says nothing about the order in which the elements must come, only how many times they may occur and what the allowed children are.

Leave a Comment

(required) 
(required) 
(optional)
(required)