code: def to_xml(self):
          
          element = etree.Element(self._tag_name)
          struct_to_xml(element, [
              {"author": self.handle},
              {"first_name": self.name},
              {"last_name": ""},  # We only have one field - splitting it would be artificial
              {"image_url": self.image_urls["large"]},
              {"image_url_small": self.image_urls["small"]},
              {"image_url_medium": self.image_urls["medium"]},
              {"gender": self.gender},
              {"bio": self.raw_content},
              {"location": self.location},
              {"searchable": "true" if self.public else "false"},
              {"nsfw": "true" if self.nsfw else "false"},
              {"tag_string": " ".join(["#%s" % tag for tag in self.tag_list])},
          ])
          return element
docs: Convert to XML message.