fix for a bug reported by abc abc <biedimc@gmx.net> (HierarchyRequestErr: two document elements disallowed)

This commit is contained in:
Miroslav Stampar 2011-01-06 08:04:59 +00:00
parent 6942c9a001
commit 1297df66da
2 changed files with 5 additions and 2 deletions

View File

@ -393,6 +393,9 @@ Anthony Zboralski <anthony.zboralski@bellua.com>
Thierry Zoller <thierry@zoller.lu> Thierry Zoller <thierry@zoller.lu>
for reporting a couple of major bugs for reporting a couple of major bugs
abc abc <biedimc@gmx.net>
for reporting a minor bug
Brandon E. <brandonpoc@gmail.com> Brandon E. <brandonpoc@gmail.com>
for reporting a bug for reporting a bug

View File

@ -487,7 +487,7 @@ class XMLDump:
self.__doc = xml.dom.minidom.parse(self.__outputFile) self.__doc = xml.dom.minidom.parse(self.__outputFile)
self.__root = self.__doc.childNodes[0] self.__root = self.__doc.childNodes[0]
except ExpatError: except ExpatError:
pass self.__doc = Document()
self.__outputFP = codecs.open(self.__outputFile, "w+", conf.dataEncoding) self.__outputFP = codecs.open(self.__outputFile, "w+", conf.dataEncoding)