I have an xml file that contains two different values that I am trying to capture in each line. I am trying to use Powershell to parse them into a csv, two columns, one being Device ID and one being MAC address, with headings. Any suggestions would be greatly appreciated. Below is a sample of what the xml file looks like that I would be working with. Thank you for your time.
<?xml version="1.0" encoding="utf-8"?>
<DeviceConfig>
<Device RegisterID="1021" MacID="A4F1E85D7D86" />
<Device RegisterID="1022" MacID="A4F1E85D056E" />
<Device RegisterID="1023" MacID="A4F1E85CAAEE" />
<Device RegisterID="1024" MacID="A4F1E85DB284" />
<Device RegisterID="1025" MacID="A4F1E85D7021" />
<Device RegisterID="1026" MacID="A4F1E85D034A" />
<Device RegisterID="1027" MacID="A4F1E85CAD59" />
<Device RegisterID="1028" MacID="A4F1E85DAFA2" />
<Device RegisterID="1029" MacID="A4F1E85D050E" />
<Device RegisterID="1030" MacID="A4F1E85DAF89" />
<Device RegisterID="1031" MacID="A4F1E85DA80E" />
</DeviceConfig>