ljElement = outDoc.createElement("livejournal")
outDoc.appendChild(ljElement)
- entryLimit = 250
currentFileEntry = 0
# start processing entries
currentFileEntry += 1
- if( currentFileEntry == entryLimit ):
+ if( currentFileEntry == entryLimit or entry == entryArray[-1] ):
f = open("%s - %s.xml" % (username, entry), "w")
tempXML = outDoc.toxml("UTF-8")