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.
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.
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.
@donj, this is a duplicate post that didn’t post correctly. It was recreated here “https://powershell.org/forums/topic/deleting-an-xml-element/”