summaryrefslogtreecommitdiff
path: root/suds/mx/literal.py
diff options
context:
space:
mode:
Diffstat (limited to 'suds/mx/literal.py')
-rw-r--r--suds/mx/literal.py3
1 files changed, 2 insertions, 1 deletions
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)