ISchema Interface

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SOM Reference

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.

[Script]

Implementation Syntax

var oSchema = oSchemaItem.schema;
[Visual Basic]

Implementation Syntax

Set oSchema = oSchemaItem.schema
[C/C++]

Implementation Syntax

HRESULT schema(ISchema* schema);

Versioning

MSXML 4.0 and later

Requirements

[Visual Basic, C/C++]

Implementation: msxml5.dll, msxml2.lib

[C/C++]

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 Language Filter in the upper-left corner of the page.

See Also

IXMLDOMSchemaCollection2 | ISchemaItem Interface | Using Namespaces in Schemas | SOM Reference