When creating a new XML file I have used
$settingNode = $xml.CreateElement('SettingNode')
$rootNode.AppendChild($settingNode) > $null
and it works, but when the InnerXML is blank the resulting node in the XML uses the shorthand approach
<SettingNode />
This works technically, but I am creating these XML files for people to cut and paste data into, so I would really prefer
<SettingNode></SettingNode>
so users have a place to paste without any extra work. That said, I can't find any flag for changing how the node is presented. Am I missing something, or am I limited to just the default representation and I'll need to copy seed XML files rather than create them programmatically?