@staticmethod<EOL><INDENT>def text_xmlencode(data):<DEDENT>
_validate_message_type_text(data)<EOL>return xml_escape(data)<EOL>
XML encode unicode text.

:param str data: Unicode string to encode
:return: XML encoded data.
:rtype: str