If you want to effectively use PowerShell, you must know how to use XML. XML is a data interchange format that is the most reliable way to ensure that the object’s data are preserved.
The data, is the heart of PowerShell. PowerShell converts external data into PowerShell objects and vice versa.
There are two built-in techniques in working with XML data in PowerShell:
XPath approach and the dot notation approach. This article will tackle these approaches and how it is a benefit or a disadvantage to your data.
Read the rest of the code here:Â https://www.simple-talk.com/sysadmin/powershell/powershell-data-basics-xml/