Private/Set-XmlContent.ps1
# SPDX-FileCopyrightText: © 2019 David Haymond <david@davidhaymond.dev> # # SPDX-License-Identifier: GPL-3.0-or-later 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) } } |