def get_xml_et(self, command_output): """ @ return xml ET """ try: return ET.fromstring(command_output) except xml.etree.ElementTree.ParseError: raise NmapXMLParserError()
def get_xml_et(self, command_output): """ @ return xml ET """ try: self.raw_ouput = command_output return ET.fromstring(command_output) except ParseError: raise NmapXMLParserError()