I am new to using XML with PowerShell, so I am not sure why this occurs, it could be my limited understanding. However, when creating an XML file with XML Notepad, I was given the option of adding comments as a Child. The first example works, but not the second example. Is this a limitation of XML or how I handle it in PowerShell. I am assuming that since the data is not closed before the comment, this is a problem. Just curious as to why this is an option in the XML creater if it is bad practice to do this.
I am calling the xml file from a commandline and importing the values: