ISchema Interface
Provides information about individual XML Schemas in the schema cache. Each XML Schema in the schema cache must have a unique namespace to differentiate it from other XML Schemas. The ISchema
object is returned by using IXMLDOMSchemaCollection2.getSchema
or ISchemaItem.schema
. The getSchema
method requires the namespace argument to return an XML Schema, and the schema
property returns the XML Schema for the current XML Schema item.
Properties
attributeGroups | Retrieves the collection of <attributeGroup> declarations. This collection contains objects that implement the ISchemaAttributeGroup interface. |
attributes | Retrieves the collection of top-level <attribute> declarations. This collection contains objects that implement the ISchemaAttribute interface. |
elements | Retrieves the collection of top-level <element> declarations. This collection contains objects that implement the ISchemaElement interface. |
modelGroups | Retrieves the collection of <modelGroup> declarations. This collection contains objects that implement the ISchemaModelGroup interface. |
notations | Retrieves the collection of notations. This collection contains objects that implement the ISchemaNotation interface. |
schemaLocations | Retrieves the string collection of XML Schema URIs that are imported to or included in an XML Schema. |
targetNamespace | Retrieves the value of the targetNamespace attribute for the XML Schema. |
types | Retrieves a collection of named simple-type and complex-type objects defined in the XML Schema. |
version | Retrieves the value of the version attribute of the XML Schema. |
Implementation Syntax
var oSchema = oSchemaItem.schema;
Implementation Syntax
Set oSchema = oSchemaItem.schema
Implementation Syntax
HRESULT schema(ISchema* schema);
Versioning
MSXML 4.0 and later
Requirements
Implementation: msxml5.dll, msxml2.lib
Header and LIB files: msxml2.h, msxml2.lib, msxml2.idl
Inheritance: Inherits from the ISchemaItem interface.
To view reference information for Visual Basic or C/C++ only, click the Language Filter button in the upper-left corner of the page.
See Also
IXMLDOMSchemaCollection2 | ISchemaItem Interface | Using Namespaces in Schemas | SOM Reference