I am having a xml file.this having the path for my log file(txt).This xml file having some modules and each having the log file path.so i want to read the xml and list the details of each module then i want to read the txt file(using the path).can anyone please give some idea to do this stuff.
Thanks,
This is my xml file
<?xml version="1.0" encoding="utf-8" ?>
<Modules>
<ServiceHost>
<LogType value="FatalErrorLog">
<Fields>
<FileName>ServiceWS.log</FileName>
<FileLocation>\\10.8.8.21\lv0\Logs\Prod\Service\</FileLocation>
<IsLogFilterAvailable value="true" />
<IsDateFilterAvailable value="true" />
<IsDownloadRawFile value="false" />
</Fields>
</LogType>
<LogType value="DebugLog">
<Fields>
<FileName>ServiceDebugWS.log</FileName>
<FileLocation>\\10.8.8.21\lv0\Logs\Prod\ServiceHost</FileLocation>
<IsLogFilterAvailable value="true" />
<IsDateFilterAvailable value="true" />
<IsDownloadRawFile value="false" />
</Fields>
</LogType>
</ServiceHost>
<Product value="Debug">
<LogType>
<Fields>
<FileName>Product.log</FileName>
<FileLocation>\\10.8.8.21\lv0\Logs\Prod\Endor\</FileLocation>
<IsLogFilterAvailable value="true" />
<IsDateFilterAvailable value="true" />
<IsDownloadRawFile value="false" />
</Fields>
</LogType>
</Product>
<Portal value="Debug">
<LogType>
<Fields>
<FileName>Portal.log</FileName>
<FileLocation>\\10.8.8.21\lv0\Logs\Prod\SupportPortal\</FileLocation>
<IsLogFilterAvailable value="true" />
<IsDateFilterAvailable value="true" />
<IsDownloadRawFile value="false" />
</Fields>
</LogType>
</Portal>
<Modules>
This should get you started: