Private/Set-XmlContent.ps1
# Copyright 2019 David Haymond. # # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. function Set-XmlContent { [CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'Low')] [OutputType($null)] param ( [xml] $XmlDocument, [string] $Path ) if ($PSCmdlet.ShouldProcess("Path: $Path", "Save XML Document")) { $XmlDocument.Save($Path) } } |