跳到主要内容

UpdateAttribute

Updates an attribute of the XML node at the specified XPath.

Syntax

expression.UpdateAttribute(xPath, name, value);

expression - A variable that represents a ApiCustomXmlPart class.

Parameters

NameRequired/OptionalData typeDefaultDescription
xPathRequiredstringThe XPath of the node whose attribute should be updated.
nameRequiredstringThe name of the attribute to update.
valueRequiredstringThe new value for the attribute.

Returns

boolean