Author Posts

June 2, 2017 at 9:05 am

I have an example of a xml format,....with that I would like to remove the element listed as such

How can I remove that one element. Thank you for any help.

June 5, 2017 at 4:25 pm

You can share XML by posting it as a Gist, and including the Gist URL in your message here.

Briefly, you need to get a reference to the element you want to remove, and to its parent element. You then tell the parent to remove the child.

June 6, 2017 at 4:00 am

@donj, this is a duplicate post that didn't post correctly. It was recreated here "https://powershell.org/forums/topic/deleting-an-xml-element/"