Deleting an

This topic contains 2 replies, has 3 voices, and was last updated by Profile photo of Curtis Smith Curtis Smith 3 weeks ago.

  • Author
    Posts
  • #71968
    Profile photo of Wei-Yen Tan
    Wei-Yen Tan
    Participant

    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.

  • #72122
    Profile photo of Don Jones
    Don Jones
    Keymaster

    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.

  • #72158
    Profile photo of Curtis Smith
    Curtis Smith
    Participant

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

You must be logged in to reply to this topic.