Esempio n. 1
0
 def get_xml_et(self, command_output):
     """
     @ return xml ET
     """
     try:
         return ET.fromstring(command_output)
     except xml.etree.ElementTree.ParseError:
         raise NmapXMLParserError()
Esempio n. 2
0
 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()