Поделиться через


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.

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.

JScript Syntax

var oSchema = oSchemaItem.schema;  

Visual Basic Syntax

Set oSchema = oSchemaItem.schema  

C/C++ Syntax

HRESULT schema(ISchema* schema);  

Requirements

Implementation: msxml6.dll, msxml6.lib

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

Inheritance: Inherits from the ISchemaItem interface.

Versioning

Implemented in: MSXML 6.0

See Also

IXMLDOMSchemaCollection2-XMLDOMSchemaCollection
ISchemaItem Interface
Using Namespaces in Schemas
SOM Reference