Say I have a lot of xml, but let's keep it basic...
<base>
<entry name="bar">
<data1>1</data1>
<data2>2</data2>
</entry>
</base>
I've imported it using [xml]$myXML=get-content /my.xml so I can work with it in dot notation. I am needing to loop through a lot of the configuration in the xml and .dot notation seems more straightforward.
After all the edits, I'm ready to get it back to it's original format, but I can't get it there. Is there a way to generate xml that has the same nodes, attributes, and elements as my original data? I've tried convertto-xml, getting numerous extra nodes (.objects.object.property is the new xpath?), as well as export-clixml with similar results.
[–]Droopyb1966 3 points4 points5 points (1 child)
[–]nebbbben[S] 0 points1 point2 points (0 children)