I’m having problems getting Select-Xml to work. The xml file is converted from a .INI file. I want to extract the information for a repeated Section /Objs/Obj/MS/Obj where the Attribute is “PortForwarding”. Under /Objs/Obj/MS/Obj, there is /Objs/Obj/MS/Obj/MS/S where there are multiple rows for <S> … </S> each with an array of values I want to gather into a data table.
[xml file]
So… In Powershell, I can get a datatable to use …
Datatable:-
Column1 Column2 Column3 Column4 Column5 Column6 Column7 Column8
“0000.ACQ-DEV-ABC1”>Local, fred.smith@10.100.1.222:22, 10.111.1.212:1433;11111, -1, C:\Keys\PrivateKey.ppk, 0.0.0.0, No proxy selected, 0
“0001.ACQ-QA-ABC1”>Local, fred.smith@10.100.1.222:22, 10.111.1.212:1433;11112, -1, C:\Keys\PrivateKey.ppk, 0.0.0.0, No proxy selected, 0
Thanks in advance!