DOM Interfaces

DOM defines several interfaces, some of which are more useful than others. The methods and attributes of each interface will be examined in some detail later in the chapter.

  • DOMImplementation. This is a query to the object itself and is independent of the document loaded into it. It will return information about the level of DOM that the object supports.

  • DocumentFragment. This is a lightweight part of the document.

  • Document. This interface provides information about the main document itself that has been loaded into the object. It has several methods for creating nodes and XML attributes.

  • Node. Everything in a document can be considered a node. Elements are nodes, comments are nodes, and so on. This interface ...

Get XML Unleashed 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.