- localName
- The local name of the element to validate.
- namespaceUri
- The namespace URI of the element to validate.
- schemaInfo
- An System.Xml.Schema.XmlSchemaInfo object whose properties are set on successful validation of the element's name. This parameter can be null.
The following are important notes to consider when using the XmlSchemaValidator.ValidateElement(string, string, XmlSchemaInfo) method.
If the element name is successfully validated in the current context, the System.Xml.Schema.XmlSchemaInfo object's (if specified) XmlSchemaInfo.IsNil, XmlSchemaInfo.SchemaType, XmlSchemaInfo.SchemaElement, and XmlSchemaInfo.Validity properties are set with the results of the validation.
If the element name or any of its attributes are invalid the current context, the XmlSchemaInfo.Validity property is set to XmlSchemaValidity.Invalid; otherwise the XmlSchemaInfo.Validity property is set to XmlSchemaValidity.NotKnown.