Validates whether the text string specified is allowed in the current element context, and accumulates the text for validation if the current element has simple content.
The following are important notes to consider when using the XmlSchemaValidator.ValidateText(string) method.
If the element has simple content, the text string specified is concatenated on each call to the XmlSchemaValidator.ValidateText(string) method until the erload:System.Xml.Schema.XmlSchemaValidator.ValidateEndElement method is called. When the erload:System.Xml.Schema.XmlSchemaValidator.ValidateEndElement method is called, all the text is validated.
If the element has complex content, no text concatenation occurs.