Text nodes
A text node encapsulates XML character content.
A text node can have zero or one parent. Text nodes that are children of a document or element node never appear as adjacent siblings. When a document or element node is constructed, any adjacent text node siblings are combined into a single text node. If the resulting text node is empty, it is discarded.
Text nodes have the following node properties:
- content, possibly empty
- parent, possibly empty
Text nodes can be constructed in XQuery expressions by computed constructors or by the action of a direct element constructor.