Append text in XML file

I have the following question:
I have an xml file xmlfilename.xml where I need to append a predeterminted value (’ /1’ ) for each instance of the XML tag value should become value/3 and finally save a new file to xmlfilename_v1.xml
How would a script like that look like. I think i need to you select-string and add-content and use an array but I am a beginner and would appreciate your help :slight_smile:

Welcome to the forum. :wave:t4:

What you asked for is a very common task and has been asked and answered already several times - not jsut here in this forum. :wink: Please use your favorit internet search engine to search for examples of how to edit XML files with PowerShell.

And BTW: PowerShell can handle XML gracefully as structured data source. There’s noc need to do quirky string acrobatics with Select-String or something similar. :point_up_2:t4: :wink:

thanks for your reply. I didnt use that search string yet in Google to look for the solution! :slight_smile: have a nice day.