Attribute nodes
An attribute node represents an XML attribute.
An attribute node can have zero or one parent. The element node that owns an attribute is considered to be its parent, even though an attribute node is not a child of its parent element.
An attribute node has the following node properties:
- node-name
- parent, possibly empty
- type-name
- string-value
- typed-value
Attribute nodes can be constructed in XQuery expressions by using direct or computed constructors.
The type-name property of an attribute node indicates the relationship between its typed value and its string value. For example, if an attribute node has the type-name property xs:decimal and the string value "47.5", its typed value is the decimal value 47.5.