Replace Values in Nested XML Using PowerShell

Welcome Forums General PowerShell Q&A Replace Values in Nested XML Using PowerShell

Viewing 1 reply thread
  • Author
    Posts
    • #224955
      Participant
      Topics: 1
      Replies: 0
      Points: 12
      Rank: Member

      How do i replace the values of “Racers”, “Pacers” “Losers” from “false” to “True” using PowerShell ?

      `

      <Tester>
      <TesterSection>
       <section name="TestingApp" type="Amazon,Google" />
      </TesterSection>
      <application>
       <add key="Minimum" value="1" />
       <add key="Maximum" value="true" />
       <add key="Runners" value="N/A" />
       <add key="Racers" value="false" />
       <add key="Pacers" value="false" />
       <add key="Losers" value="false" />
      </application>  
      </Tester>
    • #224967
      Participant
      Topics: 4
      Replies: 2231
      Points: 5,414
      Helping Hand
      Rank: Community MVP

      tagerisand, welcome to Powershell.org. Please take a moment and read the very first post on top of the list of this forum: Read Me Before Posting! You’ll be Glad You Did!.

      This forum is for scripting questions rather than script requests. We do not write customized and ready to use scripts or solutions on request.

      We expect you to make an own attempt to get your task done or to solve your problem. If you have done so already please document here what exactly you have done and show your code. Then we probably might be able to help you step further.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.