From f1ee72f9fd347732c25559fdac8469f1bdfe4d4c Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Thu, 10 Oct 2002 14:16:19 +0000 Subject: [PATCH] Remove DOCTYPE (confuses 4Suite). git-svn-id: http://dom-editor.googlecode.com/svn/branches/Gtk2@415 ef21e15d-ca94-4315-9c45-0d95b1b2e117 --- Dome/View.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dome/View.py b/Dome/View.py index 1cdc715..b617087 100644 --- a/Dome/View.py +++ b/Dome/View.py @@ -1364,6 +1364,9 @@ class View: isrc = InputSourceFactory() try: + # Hack to stop 4Suite getting confused with the namespaces + i = data.find('', i) + 1:] root = nonvalParse(isrc.fromString(data, uri)) #ext.StripHtml(root) except: @@ -1376,6 +1379,8 @@ class View: raise Beep else: print "parse OK...", + #print "Root node is", root.documentElement.namespaceURI, \ + # root.documentElement.localName new = node.ownerDocument.importNode(root.documentElement, 1) new.setAttributeNS(None, 'uri', uri) -- 2.11.4.GIT