+ # one of the children of the rootItem is the 'xml' thing.
+ # here I delete it.
+ childList = document.childNodes()
+ for i in range(childList.count()):
+ currElem = childList.item(i)
+ if (currElem.nodeType() == QDomNode.ProcessingInstructionNode):
+ document.removeChild(currElem)
+ break