- schema
- An System.Xml.Schema.XmlSchema object to add to the set of schemas used for validation.
The following are important notes to consider when using the XmlSchemaValidator.AddSchema(XmlSchema) method.
The XmlSchemaValidator.AddSchema(XmlSchema) method can be used to simulate the effect of encountering an inline XML schema in the XML document being validated.
The target namespace of the System.Xml.Schema.XmlSchema parameter cannot match that of any element or attribute already encountered by the System.Xml.Schema.XmlSchemaValidator object.
If the XmlSchemaValidationFlags.ProcessInlineSchema validation option is not set, the XmlSchemaValidator.AddSchema(XmlSchema) method does nothing.