Share via


remove Method

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Removes the specified namespace from a collection.

Script Syntax

objXMLDOMSchemaCol.remove(namespaceURI);

Remarks

Script 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).

Script Return Value

None.

C/C++ Syntax

HRESULT remove(
  BSTR namespaceURI
);

Remarks

C/C++ 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).

C/++Return Values

  • E_INVALIDARG
    Value returned if the namespace does not exist in the collection.
  • E_FAIL
    Value returned if the collection is read-only.

Requirements

Header msxml2.h, msxml2.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later

General Remarks

This method applies to the following objects and interfaces:

XMLSchemaCache/IXMLDOMSchemaCollection.