Private/Set-XmlContent.ps1
1 2 3 4 5 6 7 8 9 10 11 12 |
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) } } |