def serialize(self, elt, sw, pyobj, name=None, orig=None, **kw):
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 Nilled:<EOL><INDENT>self.serialize_as_nil(el)<EOL>return None<EOL><DEDENT>self.set_attributes(el, pyobj)<EOL>unique = self.unique or kw.get('<STR_LIT>', False)<EOL>if unique is False and sw.Known(orig or pyobj):<EOL><INDENT>self.set_attribute_href(el, objid)<EOL>return None<EOL><DEDENT>if kw.get('<STR_LIT>', self.typed) is True:<EOL><INDENT>self.set_attribute_xsi_type(el, **kw)<EOL><DEDENT>if self.unique is False:<EOL><INDENT>self.set_attribute_id(el, objid)<EOL><DEDENT>self.serialize_text_node(el, sw, pyobj)<EOL>return el<EOL>
Handles the start and end tags, and attributes.  callout
        to get_formatted_content to get the textNode value.
        Parameters:
            elt -- ElementProxy/DOM element 
            sw -- SoapWriter instance
            pyobj -- processed content

        KeyWord Parameters:
            name -- substitute name, (nspname,name) or name
            orig --