The Document Object Model

The Document Object Model (DOM) is a series of W3C specifications that provide increasing functionality to access and manipulate XML (and HTML) documents programmatically. The DOM provides a practical way to manipulate, create, and modify XML documents programmatically.

At the time of this writing, the DOM Level 2 specifications (see Appendix B, “XML Tools,” for links) are the current versions. DOM Level 3 specifications are in development.

Note

Only the DOM Level 2 Core interfaces are considered in this chapter and in Chapter 17, “The Document Object Model—2.” The Document Object Model Level 2 also specifies more ...

Get Sams Teach Yourself XML in 10 Minutes 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.