XmlSchemaCollection.Add Method (String, XmlReader, XmlResolver)
Assembly: System.Xml (in System.Xml.dll)
- Type: System.String
The namespace URI associated with the schema. For XML Schemas, this will typically be the targetNamespace.
If ns has already been associated with another schema in the collection, the schema being added replaces the original schema in the collection.
If ns is null and the schema being added is an XML Schema, the Add method uses the targetNamespace attribute defined in the XML Schema to identify the schema in the collection.
If the schema being added contains references to other namespaces (through include and import elements or the x-schema attribute), the schemas for these other namespaces are loaded for validation purposes only. Unlike the original schema, these other schemas are not explicitly added to the schema collection. As a result, they are not accessible using any of the collection methods or properties.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.