Logo Search packages:      
Sourcecode: lib-dom-java version File versions  Download package

org::w3c::dom::Document Interface Reference

Inheritance diagram for org::w3c::dom::Document:

org::w3c::dom::Node org::w3c::dom::html::HTMLDocument

List of all members.


Detailed Description

The Document interface represents the entire HTML or XML document. Conceptually, it is the root of the document tree, and provides the primary access to the document's data.

Since elements, text nodes, comments, processing instructions, etc. cannot exist outside the context of a Document, the Document interface also contains the factory methods needed to create these objects. The Node objects created have a ownerDocument attribute which associates them with the Document within whose context they were created.

Definition at line 21 of file Document.java.


Public Member Functions

Node appendChild (Node newChild) throws DOMException
Node cloneNode (boolean deep)
Attr createAttribute (String name) throws DOMException
CDATASection createCDATASection (String data) throws DOMException
Comment createComment (String data)
DocumentFragment createDocumentFragment ()
Element createElement (String tagName) throws DOMException
EntityReference createEntityReference (String name) throws DOMException
ProcessingInstruction createProcessingInstruction (String target, String data) throws DOMException
Text createTextNode (String data)
NamedNodeMap getAttributes ()
NodeList getChildNodes ()
DocumentType getDoctype ()
Element getDocumentElement ()
NodeList getElementsByTagName (String tagname)
Node getFirstChild ()
DOMImplementation getImplementation ()
Node getLastChild ()
Node getNextSibling ()
String getNodeName ()
short getNodeType ()
String getNodeValue () throws DOMException
Document getOwnerDocument ()
Node getParentNode ()
Node getPreviousSibling ()
boolean hasChildNodes ()
Node insertBefore (Node newChild, Node refChild) throws DOMException
Node removeChild (Node oldChild) throws DOMException
Node replaceChild (Node newChild, Node oldChild) throws DOMException
void setNodeValue (String nodeValue) throws DOMException

Static Public Attributes

static final short ATTRIBUTE_NODE = 2
static final short CDATA_SECTION_NODE = 4
static final short COMMENT_NODE = 8
static final short DOCUMENT_FRAGMENT_NODE = 11
static final short DOCUMENT_NODE = 9
static final short DOCUMENT_TYPE_NODE = 10
static final short ELEMENT_NODE = 1
static final short ENTITY_NODE = 6
static final short ENTITY_REFERENCE_NODE = 5
static final short NOTATION_NODE = 12
static final short PROCESSING_INSTRUCTION_NODE = 7
static final short TEXT_NODE = 3

The documentation for this interface was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index