Adds or sets an attribute on the given node(s).

Syntax

Smartsite SXML CopyCode image Copy Code
this.setattribute(string name, string value)
this.setattribute(string name, string value, string namespaceUri)
this.setattribute(string name, string value, string namespaceUri, string prefix)

Parameters

Name Data Type Description
name String The attribute name.
value String The attribute value.
namespaceUri String The namespace Uri.
prefix String The prefix.

Return Value

None.

Used in

Macro Description
XmlProcessor Native Xml data Macro.

Expand image Example

SXML