System::Xml::XmlConvert::VerifyXmlChars method

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.

static String System::Xml::XmlConvert::VerifyXmlChars(const String &content)
ParameterTypeDescription
contentconst String&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