Don't preserve whitespaces when loading xml

This commit is contained in:
Manuel Thalmann 2023-07-26 16:22:44 +02:00
parent bdf72fadbf
commit d0685c5054

View file

@ -8,7 +8,6 @@ $null = New-Module {
static [xml] GetAppAssociations() {
[xml] $associations = [xml]::new();
$associations.PreserveWhitespace = $true;
$associations.LoadXml(((DISM /Online /Get-DefaultAppAssociations) | Select-Object -Skip 6 | Select-Object -SkipLast 2 | Out-String));
return $associations;
}