## XmlWriterSettings::set_NamespaceHandling method


Sets a value that indicates whether the [XmlWriter](../../xmlwriter/) should remove duplicate namespace declarations when writing XML content. The default behavior is for the writer to output all namespace declarations that are present in the writer's namespace resolver.

```cpp
void System::Xml::XmlWriterSettings::set_NamespaceHandling(System::Xml::NamespaceHandling value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | System::Xml::NamespaceHandling | The value to set. |

## See Also

* Enum [NamespaceHandling](../../namespacehandling/)
* Class [XmlWriterSettings](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
