NamespaceHandling
Specifies whether to remove duplicate namespace declarations in the XmlWriter.
Default = 0
Specifies that duplicate namespace declarations will not be removed.
OmitDuplicates = 1
Specifies that duplicate namespace declarations will be removed. For the duplicate namespace to be removed, the prefix and the namespace must match.