def add_response_data(self, issue, response_data, binary_data=False):
            """Add parsed response data to the node

            :param issue: Issue as XML document
            :param response_data: HTTP response data
            :param binary_data: Flag indicating whether responde_data is binary
            """
            response = HTTPResponseParser(response_data, binary_data)
            response.parse_data()
            response.set_http_headers()
            headers = response.get_headers()

            # Add response metadata
            try:
                xml_response_node = issue.xpath("TestProbe/HTTP/Response")[0]
                xml_response_node.attrib['version'] = response.get_response_version()
                xml_response_node.attrib['status'] = response.get_status()
                xml_response_node.attrib['reason'] = response.get_reason()
            except __HOLE__:
                log.error("Index error")

            # Add response data
            try:
                xml_parsed_traffic = issue.xpath("TestProbe/HTTP/Response/Parsed")[0]
            except IndexError:
                Log.error("Index error")

            # Iterate through headers and create new XML nodes
            for h in headers.keys():
                for v in headers[h]:
                    # Create new sub-element
                    header_node = etree.Element('Header', name=h, value=v)
                    xml_parsed_traffic.append(header_node)

            # Add request data node
            request_data_node = etree.Element('Data')
            request_data_node.text = etree.CDATA(response.get_response_data())
            request_data_node.attrib['base64'] = str(binary_data)
            xml_parsed_traffic.append(request_data_node)
dataset/ETHPy150Open dorneanu/appvulnms/src/core/parser/AppVulnXMLParser.py/AppVulnXMLParser.add_response_data