def to_xml(self):
element = etree.Element(self._tag_name)<EOL>struct_to_xml(element, [<EOL>{"<STR_LIT:text>": self.raw_content},<EOL>{"<STR_LIT>": self.guid},<EOL>{"<STR_LIT>": self.handle},<EOL>{"<STR_LIT>": "<STR_LIT:true>" if self.public else "<STR_LIT:false>"},<EOL>{"<STR_LIT>": format_dt(self.created_at)},<EOL>{"<STR_LIT>": self.provider_display_name},<EOL>])<EOL>return element<EOL>
Convert to XML message.