- f = open("grahams - %s.xml" % entry, "w")
- tempXML = outDoc.toxml("UTF-8")
- f.write(tempXML)
-
- currentFileEntry = 0
+ # Create the minidom document
+ outDoc = xml.dom.minidom.Document()
+
+ # Create the <livejournal> base element
+ ljElement = outDoc.createElement("livejournal")
+ outDoc.appendChild(ljElement)