def serialize_text_node(self, elt, sw, pyobj):
textNode = None<EOL>if pyobj is not None:<EOL><INDENT>text = self.get_formatted_content(pyobj)<EOL>if type(text) not in _stringtypes:<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>textNode = elt.createAppendTextNode(text)<EOL><DEDENT>return textNode<EOL>
Serialize without an element node.