## XmlDocument::CreateWhitespace method


创建一个 [XmlWhitespace](../../xmlwhitespace/) 节点。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| text | const String\& | 字符串只能包含以下字符 **'\x20'**、**'\x0d'**、**'\x0a'**、**'\x09'**。 |

### ReturnValue

一个新的 [XmlWhitespace](../../xmlwhitespace/) 节点。

## 另见

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