Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Used by the schemasand namespacesproperties on IXMLDOMDocument2.
Methods
The following table shows the methods for XMLSchemaCache/IXMLDOMSchemaCollection.
Method | Description |
---|---|
Adds a new item to a schema collection. |
|
Adds all the schemas from another collection into the current collection. |
|
Returns a read-only Document Object Model (DOM) node containing the <Schema> element. |
|
Returns the namespace at the specified index. |
|
Removes the specified namespaces from a collection. |
Properties
The following table shows the properties for XMLSchemaCache/IXMLDOMSchemaCollection.
Property | Description |
---|---|
Returns the number of namespaces currently in a collection. |
Events
None.
The IXMLDOMSchemaCollectionimplementation 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 XMLSchemaCacheobject 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 |