## IXmlSerializable::WriteXml method


Serializes the current object to XML representation.

```cpp
virtual void System::Xml::Serialization::IXmlSerializable::WriteXml(System::SharedPtr<System::Xml::XmlWriter> writer)=0
```


| Parameter | Type | Description |
| --- | --- | --- |
| writer | System::SharedPtr\<System::Xml::XmlWriter\> | The stream to which the XML representation of the current object is written |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlWriter](../../../system.xml/xmlwriter/)
* Class [IXmlSerializable](../)
* Namespace [System::Xml::Serialization](../../)
* Library [Aspose.PUB for C++](../../../)
