Manipulate XML Using PowerShell and XPath
Manipulate XML Using PowerShell and XPath
Here are some sample PowerShell commands to manipulate XML contents in memory and then later dump them to an XML file. I’ve added comments inline to explain a line of PowerShell command.
#Clear output cls
#Sample XML content $xml = [xml][/xml]@' The Handmaid's Tale Margaret Atwood 19.95 The Poisonwood Bible Barbara Kingsolver 11.99 The Bean Trees Barbara Kingsolver 5.99 '@
View On WordPress











