Chapter 20. DOM Level 1

The DOM is an API for accessing the components of an XML document, allowing an application to navigate through a tree of nodes representing elements, attributes, comments and other structures, in any order. As such, it is a very different API to the SAX standard covered previously.

Chapter 21 discusses the latest version of this standard, DOM Level 2. But it is necessary to read this chapter first, Chapter 21 only discusses changes and additions.

See Chapter 33 for a list of all DOM methods.

Get XML Companion, The, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.