comparison 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
comparison
equal deleted inserted replaced
535:790be337cc41 536:a31abb97310d
320 320
321 parser = domish.elementStream() 321 parser = domish.elementStream()
322 parser.DocumentStartEvent = onStart 322 parser.DocumentStartEvent = onStart
323 parser.ElementEvent = onElement 323 parser.ElementEvent = onElement
324 parser.DocumentEndEvent = onEnd 324 parser.DocumentEndEvent = onEnd
325 tmp = domish.Element(("", "s")) 325 tmp = domish.Element((None, "s"))
326 tmp.addRawXml(s.replace('\n','').replace('\t','')) 326 tmp.addRawXml(s.replace('\n','').replace('\t',''))
327 parser.parse(tmp.toXml().encode('utf-8')) 327 parser.parse(tmp.toXml().encode('utf-8'))
328 return self.result.firstChildElement() 328 return self.result.firstChildElement()