## XmlDocument::CreateTextNode method


Creates an [XmlText](../../xmltext/) with the specified text.

```cpp
virtual SharedPtr<XmlText> System::Xml::XmlDocument::CreateTextNode(const String &text)
```


| Parameter | Type | Description |
| --- | --- | --- |
| text | const String\& | The text for the [Text](../../../system.text/) node. |

### ReturnValue

The new [XmlText](../../xmltext/) node.

## See Also

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