Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $xmlFile = "c:\temp\students.xml"
- $xml = [xml] (get-content $xmlFile)
- ($xml.students.student | Where-Object {$_.id -eq "101"}).firstName = "Harry"
- $xml.Save($xmlFile);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement