Export (0) Print
Expand All
DOM
Expand Minimize

remove Method

Removes the specified namespace from a collection.

objXMLDOMSchemaCol.remove(namespaceURI);

Parameters

namespaceURI

The namespace to remove from the collection. This can be any string that can be used in an xmlns attribute, but it cannot contain entity references. The same white space normalization that occurs on the xmlns attribute occurs on this argument (that is, leading and trailing white space is trimmed, new lines are converted to spaces, and multiple adjacent white space characters are collapsed into one space).

objXMLDOMSchemaCol.remove(namespaceURI)

Parameters

namespaceURI

The namespace to remove from the collection. This can be any string that can be used in an xmlns attribute, but it cannot contain entity references. The same white space normalization that occurs on the xmlns attribute occurs on this argument (that is, leading and trailing white space is trimmed, new lines are converted to spaces, and multiple adjacent white space characters are collapsed into one space).

HRESULT remove(BSTR namespaceURI);

Parameters

namespaceURI[in]

The namespace to remove from the collection.

This can be any string that can be used in an xmlns attribute, but it cannot contain entity references. The same white space normalization that occurs on the xmlns attribute occurs on this argument (that is, leading and trailing white space is trimmed, new lines are converted to spaces, and multiple adjacent white space characters are collapsed into one space).

Return Values

E_INVALIDARG

The value returned if the namespace does not exist in the collection.

E_FAIL

The value returned if the collection is read-only.

In MSXML 6.0, when a schema is added to the SchemaCache, it can import schemas from other namespaces. Furthermore, all schemas added to the SchemaCache can be merged with schemas that have the same namespace. Therefore, the remove method no longer reverses the actions taken when you call the add method. The remove method is deprecated in MSXML 6.0, and throws a Not Implemented exception.

Implemented in: MSXML 3.0, MSXML 4.0, and MSXML 5.0. Not implemented in MSXML 6.0.

Show:
© 2014 Microsoft