Gets the value of the given attribute on the current Xml node.

Syntax

Smartsite SXML CopyCode image Copy Code
string this.getattribute(string name)
string this.getattribute(string name, string xpathExpression)

Parameters

Name Data Type Description
name String The attribute name.
xpathExpression String The xpath expression.

Return Value

Data Type Description
String String

Used in

Macro Description
XmlProcessor Native Xml data Macro.
SXML