跳到主要内容

DeleteAttribute

Deletes an attribute from the XML node at the specified XPath.

Syntax

expression.DeleteAttribute(xPath, name);

expression - A variable that represents a ApiCustomXmlPart class.

Parameters

NameRequired/OptionalData typeDefaultDescription
xPathRequiredstringThe XPath of the node from which to delete the attribute.
nameRequiredstringThe name of the attribute to delete.

Returns

boolean