Creates an object to lookup XML namespace prefixes.
New-NamespaceManager.ps1 [[-Namespaces] <IDictionary>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Use-ReasonableDefaults.ps1; $n = New-NamespaceManager.ps1; (Select-Xml //xhtml:td dataref.xslt).Node.SelectSingleNode('xhtml:var',$n).OuterXml
<var xmlns=”http://www.w3.org/1999/xhtml”>ANY</var> <var xmlns=”http://www.w3.org/1999/xhtml”>ANY</var>
A dictionary of prefixes and their namespace URLs. If a default Namespace value for Select-Xml exists, this will use it.
Type: IDictionary
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: $PSDefaultParameterValues['Select-Xml:Namespace']
Accept pipeline input: False
Accept wildcard characters: False
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
https://docs.microsoft.com/dotnet/api/system.xml.xmlnamespacemanager