I have 3 XML files that are located in different project folder paths to be merged into one.
For Eg:
$Xml1 = "C:\XmlFolder1\XmlList1.xml
$Xml2 = "C:\XmlFolder2\XmlList2.xml
$Xml3 = "C:\XmlFolder3\XmlList3.xml
I need these 3 xml files to be merged into one, say – $MainXml = MainXml.xml (i.e, $Xml1 + $Xml2 + $Xml3)
All the Xml files contain same attributes.
For Eg: Sample Xml snippet
<Projects>
<Project>C:\Foldercommon\project1.vbproj</Project>
<Project>C:\Foldercommon\project2.vbproj</Project>
</Projects>
There is a common logic for xml in my functions that would be achieved using $MainXml.
Any help will be greatly appreciated.
Thanks!
Ashish
I got it working by using this:
But being a novice to Powershell, eager to learn new best possible way of working with XML in PowerShell 🙂
Thanks a lot Christian for your help so far 🙂