A.1.2  Node Attributes

Each node may have zero or more attributes. The attributes are not child nodes of the node. Each attribute contains a scalar string value. The attribute of a node can be referenced using the attribute name appended to an '@' sign.

@id = '339-928-9877'

When the attribute name is used without any qualification, as in the above example, it refers to the attribute in the current node. Appending the attribute name to the node path can reference the attribute values of any child node:

child1.grandchild.@type = 'integer'

The 'node' function can also be used to reference an attribute:

node('child1.second child.@name') = 'John'

<< A.1.1 Child Node Values © 1996-2013 InetSoft Technology Corporation (v11.5) A.1.3 Variables >>