November 2002
Intermediate to advanced
1120 pages
21h 2m
English
The Document interface, summarized in Example 10.4, serves two purposes in DOM:
As an abstract factory, it creates instances of other nodes for that document.
It is the representation of the document node.
package org.w3c.dom; public interface Document extends Node { public Element createElement(String tagName) throws DOMException; public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException; public Text createTextNode(String data); public Comment createComment(String data); public CDATASection createCDATASection(String data) throws DOMException; public ProcessingInstruction createProcessingInstruction( String target, String data) ... |
Read now
Unlock full access