XPath views each XML document as a tree of nodes. Each node has one of seven types:
The XML declaration and the document type declaration are not included in XPath's view of an XML document. All entity references, character references, and CDATA sections are resolved before the XPath tree is built. The references themselves are not included as a separate part of the tree.
Copyright © 2002 O'Reilly & Associates. All rights reserved.