diff src/tools/xml_tools.py @ 536:a31abb97310d

core, plugins: fixed bad namespace in stanza creation
author Goffi <goffi@goffi.org>
date Thu, 01 Nov 2012 22:41:39 +0100
parents 2a072735e459
children ca13633d3b6b
line wrap: on
line diff
--- a/src/tools/xml_tools.py	Thu Nov 01 19:52:59 2012 +0100
+++ b/src/tools/xml_tools.py	Thu Nov 01 22:41:39 2012 +0100
@@ -322,7 +322,7 @@
         parser.DocumentStartEvent = onStart
         parser.ElementEvent = onElement
         parser.DocumentEndEvent = onEnd
-        tmp = domish.Element(("", "s"))
+        tmp = domish.Element((None, "s"))
         tmp.addRawXml(s.replace('\n','').replace('\t',''))
         parser.parse(tmp.toXml().encode('utf-8'))
         return self.result.firstChildElement()