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
Hilbert,
Welcome to the forum.
What you asked for is a very common task and has been asked and answered already several times - not jsut here in this forum. 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.
thanks for your reply. I didnt use that search string yet in Google to look for the solution! have a nice day.