<PackageReference Include="System.Xml.ReaderWriter" Version="4.0.11-beta-23409" />

XmlNamespaceScope

public enum XmlNamespaceScope
Defines the namespace scope.
All = 0

All namespaces defined in the scope of the current node. This includes the xmlns:xml namespace which is always declared implicitly. The order of the namespaces returned is not defined.

All namespaces defined in the scope of the current node, excluding the xmlns:xml namespace, which is always declared implicitly. The order of the namespaces returned is not defined.

Local = 2

All namespaces that are defined locally at the current node.