## XmlDocument::CreateComment method


Creates an [XmlComment](../../xmlcomment/) containing the specified data.

```cpp
virtual SharedPtr<XmlComment> System::Xml::XmlDocument::CreateComment(const String &data)
```


| Parameter | Type | Description |
| --- | --- | --- |
| data | const String\& | The content of the new [XmlComment](../../xmlcomment/). |

### ReturnValue

The new [XmlComment](../../xmlcomment/).

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlComment](../../xmlcomment/)
* Class [String](../../../system/string/)
* Class [XmlDocument](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
