I would like to know if is it possible to modify/create values in XML files using PowerShell. Basically I'm interested in:
- Modify values in the XML file or create them if they don't exist (i.e. I need to search the item, create if not exists and modify the value)
- Deal with different XML syntax in the same XML file like those ones:
Syntax 1:
<settings> <setting id="Location2" value="Barcelona, Spain"/> <setting id="Location2id" value="zmw:00000.1.08181"/> </settings>
Syntax 2:
<settings> <musicplayer> <crossfade>0</crossfade> <queuebydefault>false</queuebydefault> </musicplayer> </settings>
Syntax 3:
<settings> <skinsettings> <setting type="bool" name="skin.confluence.HomepageHideRecentlyAddedVideo">false</setting> </skinsettings> </settings>
Any help would be very appreciated.
Thanks.