
• documentElement is the topmost element in the document.
•
doctype is the Document Type. DOM level 1 does not fully specify the
document type. This will be done in DOM level 2.
Document is similar to the root in XSL path. It’s an object one step before
the topmost element.
To return a tree, the parser returns a
Document object. From the Document
object, it is possible to access the complete document tree.
CAUTION
Unfortunately, the DOM recommendation starts with the Document object, not with the
parser itself. For the time being, there is no standard mechanism to access the parser.
It is advisable to clearly isolate the call to the parser from the rest ...