Skip to Content
Special Edition Using XML, Second Edition
book

Special Edition Using XML, Second Edition

by - et al. David Gulbransen
July 2002
Intermediate to advanced
864 pages
22h 32m
English
Que
Content preview from Special Edition Using XML, Second Edition

XPath Node Types

XPath 1.0 provides seven node types that are described in this section. Each node type corresponds to a part of the source XML document. Remember that two parts of the source XML document—the XML declaration, if present, and the DOCTYPE declaration—cannot be represented in XPath.

XPath is also unable to express an external parsed entity. If you want to address parts of such an entity, it is necessary to use XPointer.

Root Node

All XML documents that are well-formed have a single root node. The root node corresponds broadly to the document entity in XML 1.0 and is not visible within the code of the XML document.

A root node has no parent node or ancestor node. The root node has no name.

Element Nodes

Element nodes are the XPath ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XML Pocket Reference, 3rd Edition

XML Pocket Reference, 3rd Edition

Simon St. Laurent, Michael Fitzgerald
Essential XML: Beyond Markup

Essential XML: Beyond Markup

Don Box, Aaron Skonnard, John Lam

Publisher Resources

ISBN: 078972748XPurchase book