History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: ELMO-12
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Peter Mika
Reporter: Peter Mika
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Elmo

RSS channels with a single item are written out in the wrong format

Created: 28/Jun/05 04:55 PM   Updated: 07/Mar/07 04:41 PM
Component/s: Object Model
Affects Version/s: 0.1
Fix Version/s: 1.0-alpha


 Description   
When writing out an RSS channel with a single item, the AbbreviatedRdfXmlWriter can use the striped syntax to write out the channel. This is as expected, but results in invalid RSS:
<pre>
<rss:channel rdf:about="http://rss.example.org">
<rss:title>Test channel</rss:title>
<rss:link>http://www.cs.vu.nl/&lt;/rss:link>
<rss:description>This is the description of this channel.</rss:description>
<rss:items>
<rdf:Seq rdf:nodeID="node10j1n6p08x1">
<rdf:li>
<rss:item rdf:about="http://rss.example.org#1">
<rss:title>Our latest news item</rss:title>
<rss:description>This is the description of the latest news item</rss:description>
</rss:item>
</rdf:li>
</rdf:Seq>
</rss:items>
</rss:channel>
</pre>
Instead of:

<pre>
<rss:channel rdf:about="http://rss.example.org">
<rss:title>Test channel</rss:title>
<rss:link>http://www.cs.vu.nl/&lt;/rss:link>
<rss:description>This is the description of this channel.</rss:description>
<rss:items>
<rdf:Seq rdf:nodeID="node10j1n6p08x1">
<rdf:li rdf:about="http://rss.example.org#1" />
                </rdf:Seq>
</rss:items>
</rss:channel>

<rss:item rdf:about="http://rss.example.org#1">
<rss:title>Our latest news item</rss:title>
        <rss:description>This is the description of the latest news item</rss:description>
</rss:item>
</pre>


 All   Comments   Change History      Sort Order:
Comment by James Leigh [26/Feb/07 04:54 AM]
The RSS writer now flushes the statements before printing each of the items.