Contains a cache of XML Schema definition language (XSD) and XML-Data Reduced (XDR) schemas. The System.Xml.Schema.XmlSchemaCollection class class is obsolete. Use System.Xml.Schema.XmlSchemaSet instead.
See Also: XmlSchemaCollection Members
Schemas are loaded using the XmlSchemaCollection.Add(string, string) method, at which time the schema is associated with a namespace Uniform Resource Identifier (URI). For XML Schemas, this will typically be the targetNamespace property of the schema.
Although this class stores both XML Schemas and XDR schemas, any method and property that takes or returns an System.Xml.Schema.XmlSchema applies to XML Schemas only.
This version of the product supports the World Wide Web Consortium (W3C) XML Schema recommendation located at http://www.w3.org/TR/xmlschema-1 and http://www.w3.org/TR/xmlschema-2. An XML Schema must reference the W3C Schema namespace http://www.w3.org/2001/XMLSchema in its schema element. See the XmlSchemaCollection.Add(string, string) method for an example.
XmlSchemaCollection can be used by System.Xml.XmlValidatingReader for efficient data validation.
The System.Xml.Schema.XmlSchemaCollection class is obsolete in the Microsoft .NET Framework version 2.0 and has been replaced by the System.Xml.Schema.XmlSchemaSet class.