def as_xml(self):
result = ElementTree.Element(self.error_qname)<EOL>result.append(deepcopy(self.condition))<EOL>if self.text:<EOL><INDENT>text = ElementTree.SubElement(result, self.text_qname)<EOL>if self.language:<EOL><INDENT>text.set(XML_LANG_QNAME, self.language)<EOL><DEDENT>text.text = self.text<EOL><DEDENT>return result<EOL>
Return the XML error representation.

        :returntype: :etree:`ElementTree.Element`