## XmlConvert::VerifyXmlChars method


Returns the passed-in string if all the characters and surrogate pair characters in the string argument are valid XML characters, otherwise an XmlException is thrown with information on the first invalid character encountered.

```cpp
static String System::Xml::XmlConvert::VerifyXmlChars(const String &content)
```


| Parameter | Type | Description |
| --- | --- | --- |
| content | const String\& | [String](../../../system/string/) that contains characters to verify. |

### ReturnValue

The passed-in string if all the characters and surrogate-pair characters in the string argument are valid XML characters, otherwise an XmlException is thrown with information on the first invalid character encountered.

## See Also

* Class [String](../../../system/string/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
