Compartilhar via


XMLSchemaCache/IXMLDOMSchemaCollection

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Used by the schemas and namespaces properties on IXMLDOMDocument2.

Methods

The following table shows the methods for XMLSchemaCache/IXMLDOMSchemaCollection.

Method Description

add

Adds a new item to a schema collection.

addCollection

Adds all the schemas from another collection into the current collection.

get

Returns a read-only Document Object Model (DOM) node containing the <Schema> element.

namespaceURI

Returns the namespace at the specified index.

remove

Removes the specified namespaces from a collection.

Properties

The following table shows the properties for XMLSchemaCache/IXMLDOMSchemaCollection.

Property Description

length

Returns the number of namespaces currently in a collection.

Events

None.

The IXMLDOMSchemaCollection implementation supports the following interface through QueryInterface.

Interface Usage

IID_EnumVARIANT

Returns an IEnumVARIANT. Enumerates the namespace Uniform Resource Identifiers (URIs).

Return Values

  • E_FAIL
    Attempted to modify a read-only object; argument is not a valid schema; invalid namespace URI; or document is not ready.
  • E_INVALIDARG
    The parameter is incorrect.
  • E_OUTOFMEMORY
    Out of memory.
  • E_POINTER
    Invalid pointer.

Remarks

The XMLSchemaCache object is free-threaded and can be used in multiple documents at the same time. A single schema document can belong to multiple schema collections and will remain read-only until it is removed from all collections. Schema documents belonging to a collection must be free-threaded.

Setting Version-independent Version-dependent

ProgID

Msxml2.XMLSchemaCache

Msxml2.XMLSchemaCache.3.0

CLSID

373984C9-B845-449B-91E7-45AC83036ADE

f5078f34-c551-11d3-89b9-0000f81fe221

See Also

Reference

IXMLDOMDocument2