GetFilePathFromXML(IncidentXml)

This routine reads and analyzes the incident details from the provided XML file.

Table 1. Parameters
IncidentXml Unicode The path to the XML file containing the incident details.
Table 2. Returns
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)
>>>