System.Xml.NamespaceHandling Enumeration

Specifies whether to remove duplicate namespace declarations in the System.Xml.XmlWriter.

Syntax

[System.Flags]
public enum NamespaceHandling

Remarks

The System.Xml.NamespaceHandling enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Members

Member NameDescription
Default

Specifies that duplicate namespace declarations will not be removed.

OmitDuplicates

Specifies that duplicate namespace declarations will be removed. For the duplicate namespace to be removed, the prefix and the namespace must match.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 4.0.0.0