1

Closed

Channel element can contain one rating element

description

I'm using rss2schema-2.0.2.15 in my application. Created the following test file:
 
<?xml version="1.0" encoding="utf-16" ?>
<rss version="2.0">
<channel>
<title>ZNAK RSS rating test</title>
<link>http://www.znak.fi/rss/channel/rating/</link>
<description>A test feed with a channel rating element</description>
<rating>(PICS-1.1 "http://www.rsac.org/ratingsv01.html" l by "webmaster@example.com" on "2007.01.29T10:09-0800" r (n 0 s 0 v 0 l 0))</rating>
<item>
<title>RSS Test Item</title>
<link>http://www.znak.fi/rss/channel/rating/</link>
<description>RSS channel rating test</description>
</item>
</channel>
</rss>
 
The msxml parser informs the user:
 
Element 'rating' is unexpected according to content model of parent element 'channel'.
Expecting: 'title', 'link', 'description', 'language', 'copyright', 'managingEditor', 'webMaster' etc.
 
Can you do something to make the schema conform to this aspect of the RSS 2.0 spec?
 
Thanks Philip
Closed Nov 2, 2008 at 3:55 AM by jthelin

comments

wrote Nov 2, 2008 at 3:55 AM

Resolved with changeset 23849.

jthelin wrote Nov 2, 2008 at 3:58 AM

Oops -- yes, you are right Phillip. The rating element is missing from RssChannel.
Fixed with this check-in.

jthelin wrote Nov 2, 2008 at 4:30 AM

Fixed in release rss2schema-2.0.2.16

wrote Feb 14, 2013 at 2:04 AM

wrote May 16, 2013 at 7:30 AM