Functions/XML/Export-Xml.ps1

function Export-Xml {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [xml]
        $Xml
        ,
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [string]
        $Path
    )

    process {
        $Xml.Save($Path)
    }
}