def write(self):
itemcount = 0
- output = ''
- output += '<rdf:RDF\n'
+ output = '<rss version="1.0\n'
output += ' xmlns:dc="http://purl.org/dc/elements/1.1/"\n'
output += ' xmlns:content="http://purl.org/rss/1.0/modules/content/">\n'
output += ' xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n'
+ output += '<rdf:RDF>\n'
output += ' <channel>\n'
output += ' <title>Planet UCC</title>\n'
output += ' <link>http://planet.ucc.asn.au/</link>\n'
if itemcount >= self.maxitems:
break
output += '</rdf:RDF>\n'
+ output += '</rss>'
return output