VerifyXmlChars()

XmlConvert::VerifyXmlChars(const String&) 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)

Arguments

ParameterTypeDescription
contentconst String&String that contains characters to verify.

Return Value

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