Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Faster way to read XML files using power shell !!

$
0
0

At the moment i have about 1000 XML files (ranging from size 15kb to 120kb), I have a powershell script which extracts information and writes all extracts to the same LOG file!!

It works well but am only concerned with the time it takes!! it took about 1.5 hrs to finish the script! Is this normal?

How can i speed it up, your inputs and thoughts helps!!

Reading XML using the following syntax!

$Inputfile=[xml](Get-Content $XFILE)

Script has only foreach loop!  and no other conditions.

cheers!


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>