From 509667150c32bca2314152c6de2ab078a2f831d5 Mon Sep 17 00:00:00 2001 From: jortel Date: Fri, 12 Aug 2011 15:36:46 +0000 Subject: Don't add prefix (None) to the prefixes dict. --- suds/mx/literal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/suds/mx/literal.py b/suds/mx/literal.py index 937ad8e..1c5fbb0 100644 --- a/suds/mx/literal.py +++ b/suds/mx/literal.py @@ -145,7 +145,8 @@ class Typed(Core): ns = content.type.namespace() if content.type.form_qualified: node = Element(content.tag, ns=ns) - node.addPrefix(ns[0], ns[1]) + if ns[0]: + node.addPrefix(ns[0], ns[1]) else: node = Element(content.tag) self.encode(node, content) -- cgit v1.2.1