It then makes the tree for the entire document available to program code for reading and updating. At the core of the DOM API are the Document and Node interfaces. A Document is a top level object that represents an XML document. The Document holds the data as a tree of Nodes, where a Node is a base type that can be an element, an attribute, or some other type of content. The Document also acts as a factory for new Nodes.
Nodes represent a single piece of data in the tree, and provide all of the popular tree operations.
You can query nodes for their parent, their siblings, or their children. You can also modify the document by adding or removing Nodes. This time, let's group the output by author. This will take a little more work. Then point your browser to ListByAuthor.html to see a list of tips organized by author.