ISchema Interface

 

[This section discusses a feature was only implemented for MSXML 6.0.]

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.

attributeGroupsRetrieves the collection of <attributeGroup> declarations. This collection contains objects that implement the ISchemaAttributeGroup interface.
attributesRetrieves the collection of top-level <attribute> declarations. This collection contains objects that implement the ISchemaAttribute interface.
elementsRetrieves the collection of top-level <element> declarations. This collection contains objects that implement the ISchemaElement interface.
modelGroupsRetrieves the collection of <modelGroup> declarations. This collection contains objects that implement the ISchemaModelGroup interface.
notationsRetrieves the collection of notations. This collection contains objects that implement the ISchemaNotation interface.
schemaLocationsRetrieves the string collection of XML Schema URIs that are imported to or included in an XML Schema.
targetNamespaceRetrieves the value of the targetNamespace attribute for the XML Schema.
typesRetrieves a collection of named simple-type and complex-type objects defined in the XML Schema.
versionRetrieves the value of the version attribute of the XML Schema.
var oSchema = oSchemaItem.schema;  

Set oSchema = oSchemaItem.schema  

HRESULT schema(ISchema* schema);  

Implementation: msxml6.dll, msxml6.lib

Header and LIB files: msxml2.h, msxml2.lib, msxml2.idl

Inheritance: Inherits from the ISchemaItem interface.

Implemented in: MSXML 6.0

IXMLDOMSchemaCollection2-XMLDOMSchemaCollection
ISchemaItem Interface
Using Namespaces in Schemas
SOM Reference

Show: