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
Returns XmlAttr object for the next attribute in the parent element.
Syntax
next()
Returns
An XmlAttr.
prev
Returns XmlAttr object for the previous attribute in the parent object.
Syntax
prev()
Returns
An XmlAttr.
type
Returns the type of this attribute node.
Syntax
type()
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.