def serialize(self, elt, sw, pyobj, name=None, orig=None, **kw):
if pyobj is not None and type(pyobj) not in _seqtypes:<EOL><INDENT>raise EvaluateException('<STR_LIT>')<EOL><DEDENT>objid = _get_idstr(pyobj)<EOL>ns,n = self.get_name(name, objid)<EOL>el = elt.createAppendElement(ns, n)<EOL>if self.nillable is True and pyobj is None:<EOL><INDENT>self.serialize_as_nil(el)<EOL>return None<EOL><DEDENT>tc = self.itemTypeCode<EOL>s = StringIO(); sep = '<STR_LIT:U+0020>'<EOL>for item in pyobj:<EOL><INDENT>s.write(tc.get_formatted_content(item))<EOL>s.write(sep)<EOL><DEDENT>el.createAppendTextNode(s.getvalue())<EOL>
elt -- the current DOMWrapper element 
           sw -- soapWriter object
           pyobj -- python object to serialize