XML technologies / XSLT / Introduction to XSLT 2.0 / Getting started with XSLT and XPath / The XML document as a tree / Document nodes
(Excerpt from "XSLT 2.0 & XPath 2.0" by Frank Bongers, Chapter 1.)
The document node is an abstract concept. It is an unnamed node, whose content encompasses the entire document. Selecting the document node with an XPath expression therefore means selecting the entire document tree.
In a normal well-formed XML document, the document node has at least one child node: the document’s root element. Other nodes may also appear at the top level. If the document has a prolog containing comments or processing instructions, these precede the root element node as sibling nodes. This does not apply to the XML declaration itself.
Copyright © Galileo Press, Bonn 2008
You may print the online version for your private use.
Otherwise, this chapter from "XSLT 2.0 & XPath 2.0 ― Das umfassende Handbuch" is subject to the same terms as the printed edition: the work and all its parts are protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Galileo Press, Rheinwerkallee 4, 53227 Bonn