GetFilePathFromXML(IncidentXml)
This routine reads and analyzes the incident details from the provided XML file.
| IncidentXml | Unicode | The path to the XML file containing the incident details. |
| 0 | Unicode | The discovery location: NETWORK or ENDPOINT |
| 1 | Unicode |
The absolute file path. For endpoint discovery, uses UNC format \\hostname\C\path\to\file. |
| 2 | Unicode | True - File exists False - File not found |
Example
>>> import DiscoveryIncidentProcessing
>>>
DiscoveryIncidentProcessing.GetFilePathFromXML(r'C:\Temp\ 5371106770671816417.xml')
(u'NETWORK',
u'\\\\10.4.228.150\\DiscoveryTarget\\TestFile.txt', True)
>>>