first get the xml doc, then pass it to DomModel. Not the other way around
[sface.git] / sface / xmlwidget.py
index 2aa7238..b24de60 100644 (file)
@@ -32,6 +32,7 @@ class DomModel(QAbstractItemModel):
             currElem = childList.item(i)
             if (currElem.nodeType() == QDomNode.ProcessingInstructionNode):
                 document.removeChild(currElem)
+                print "REMOVED!"
                 break
         self.rootItem = DomItem(document, 0);