## XmlDocument::CreateWhitespace method


Creates an [XmlWhitespace](../../xmlwhitespace/) node.

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


| Parameter | Type | Description |
| --- | --- | --- |
| text | const String\& | The string must contain only the following characters **'\x20'**, **'\x0d'**, **'\x0a'**, **'\x09'**. |

### ReturnValue

A new [XmlWhitespace](../../xmlwhitespace/) node.

## See Also

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