What Is the Document Object Model?

The DOM is a platform and programming language independent standard that was developed to provide a programming API that supports both HTML and XML documents. The DOM was originally developed as a specification to enhance the portability of JavaScript scripts and Java applications between different web browsers. Early members of the DOM working group had a lot of hands-on experience with Standard General Markup Language (SGML), and they influenced the direction of the standard development. Thanks to all their hard work, the DOM developers have built an API that allows us to add, delete, retrieve, and modify the contents of XML and HTML documents. Of course, this chapter focuses strictly on XML documents. ...

Get XML and Perl 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.