Powershell functions to get an xml node, and get and set an xml element’s value, even when the element does not already exist

I’m new to working with Xml through PowerShell and was so impressed when I discovered how easy it was to read an xml element’s value.  I’m working with reading/writing .nuspec files for working with NuGet.  Here’s a sample xml of a .nuspec xml file:

Read more at http://blog.danskingdom.com/powershell-functions-to-get-an-xml-node-and-get-and-set-an-xml-elements-value-even-when-the-element-does-not-already-exist/

This article is part of the GWB Archives. Original Author: deadlydog

New on Geeks with Blogs