Validates whether the text returned by the System.Xml.Schema.XmlValueGetter object specified is allowed in the current element context, and accumulates the text for validation if the current element has simple content.
- elementValue
- An System.Xml.Schema.XmlValueGetter delegate used to pass the text value as a Common Language Runtime (CLR) type compatible with the XML Schema Definition Language (XSD) type of the attribute.
The following are important notes to consider when using the XmlSchemaValidator.ValidateText(XmlValueGetter) method.
If the element has simple content, the text string specified is concatenated on each call to the XmlSchemaValidator.ValidateText(XmlValueGetter) 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.