bling
authordavyd <davyd>
Sat, 6 Mar 2004 06:57:33 +0000 (06:57 +0000)
committerdavyd <davyd>
Sat, 6 Mar 2004 06:57:33 +0000 (06:57 +0000)
RSS1Writer.py

index 638047e..571998c 100644 (file)
@@ -29,11 +29,11 @@ class RSS1Writer:
        
        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'
@@ -53,4 +53,5 @@ class RSS1Writer:
                        if itemcount >= self.maxitems:
                                break
                output  +=      '</rdf:RDF>\n'
+               output  +=      '</rss>'
                return output

UCC git Repository :: git.ucc.asn.au