Getting Started > Use Lua Scripts > Method Reference > XmlAttr Methods

XmlAttr Methods
name
Returns the name of this attribute.
Syntax
name()
Returns
A String containing the name of the attribute.
next_attribute
Returns XmlAttr object for the next attribute in the parent element.
Syntax
next_attribute ()
Returns
An XmlAttr.
previous_attribute
Returns XmlAttr object for the previous attribute in the parent object.
Syntax
previous_attribute ()
Returns
An XmlAttr.
type
Returns the type of this attribute node.
Syntax
type()
Returns
This method returns a string containing "attribute_node" if the node is valid, or "null" if the node is invalid.
value
Returns the value of this attribute.
Syntax
value()
Returns
A String containing the value of the attribute.