次の方法で共有


removeAttributeNode Method (Windows Embedded CE 6.0)

1/6/2010

Removes the specified attribute from this element.

Script Syntax

var objXMLDOMAttribute = oXMLDOMElement.removeAttributeNode(DOMAttribute);

Remarks

Ee502690.collapse(en-US,WinEmbedded.60).gifScript Parameters

  • DOMAttribute
    Object that supplies the IXMLDOMAttribute object to be removed from this element.

Ee502690.collapse(en-US,WinEmbedded.60).gifReturn Value

Object. Returns the removed element.

Ee502690.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

HRESULT removeAttributeNode(
  IXMLDOMAttribute* DOMAttribute,
  IXMLDOMAttribute** attributeNode
);

Remarks

Ee502690.collapse(en-US,WinEmbedded.60).gifC/C++ Parameters

  • DOMAttribute
    [in] IXMLDOMAttribute object that is to be removed from this element.
  • attributeNode
    [out, retval] Removed element.

Ee502690.collapse(en-US,WinEmbedded.60).gifC/C++ Return Values

  • S_OK
    Value returned if successful.
  • E_FAIL
    Value returned if an error occurs.

Ee502690.collapse(en-US,WinEmbedded.60).gifRequirements

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

General Remarks

If the attribute has a default value, this call also creates a new attribute with the default value, associates the new attribute with this element, and resets the attribute's specified Property.

This method applies to the following objects and interfaces:

IXMLDOMElement and IXMLDOMAttribute.

See Also

Reference

XML DOM Methods

Other Resources