def generate_response_xml(self):
root = etree.Element(<EOL>'<STR_LIT>',<EOL>xmlns='<STR_LIT>')<EOL>header = etree.SubElement(root, '<STR_LIT>')<EOL>header_info = etree.SubElement(header, '<STR_LIT>')<EOL>version = etree.SubElement(header_info, '<STR_LIT>')<EOL>version.text = '<STR_LIT>'<EOL>message_identifier = etree.SubElement(header_info,<EOL>'<STR_LIT>')<EOL>message_identifier.text = str(self.message_identifier)<EOL>status_info = etree.SubElement(header_info, '<STR_LIT>')<EOL>code_major = etree.SubElement(status_info, '<STR_LIT>')<EOL>code_major.text = str(self.code_major)<EOL>severity = etree.SubElement(status_info, '<STR_LIT>')<EOL>severity.text = str(self.severity)<EOL>description = etree.SubElement(status_info, '<STR_LIT>')<EOL>description.text = str(self.description)<EOL>message_ref_identifier = etree.SubElement(<EOL>status_info,<EOL>'<STR_LIT>')<EOL>message_ref_identifier.text = str(self.message_ref_identifier)<EOL>operation_ref_identifier = etree.SubElement(<EOL>status_info,<EOL>'<STR_LIT>')<EOL>operation_ref_identifier.text = str(self.operation)<EOL>body = etree.SubElement(root, '<STR_LIT>')<EOL>response = etree.SubElement(body, '<STR_LIT>' % (self.operation,<EOL>'<STR_LIT>'))<EOL>if self.score:<EOL><INDENT>result = etree.SubElement(response, '<STR_LIT:result>')<EOL>result_score = etree.SubElement(result, '<STR_LIT>')<EOL>language = etree.SubElement(result_score, '<STR_LIT>')<EOL>language.text = '<STR_LIT>'<EOL>text_string = etree.SubElement(result_score, '<STR_LIT>')<EOL>text_string.text = str(self.score)<EOL><DEDENT>return '<STR_LIT>' + etree.tostring(root)<EOL>
Generate XML based on the current configuration.