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.

   

back to top