Uses of Interface org.w3c.dom.Document (Common DOM API )
Date: 2026-04-17

## Uses of Interface
org.w3c.dom.Document

- Packages that use Document
  Package | Description
  --- | ---
  com.sun.java.browser.dom |
  org.w3c.dom | Provides the interfaces for the Document Object Model (DOM).
  org.w3c.dom.html |
  org.w3c.dom.ls |

- - ### Uses of Document in com.sun.java.browser.dom

    Methods in com.sun.java.browser.dom that return Document
    Modifier and Type | Method and Description
    --- | ---
    `Document` | DOMAccessor.`getDocument(Object obj)` Returns the Document object of the DOM.
    `abstract Document` | DOMServiceProvider.`getDocument(Object obj)` Returns the Document object of the DOM.

  - ### Uses of Document in org.w3c.dom

    Methods in org.w3c.dom that return Document
    Modifier and Type | Method and Description
    --- | ---
    `Document` | DOMImplementation.`createDocument(String namespaceURI, String qualifiedName, DocumentType doctype)` Creates a DOM Document object of the specified type with its document element.
    `Document` | Node.`getOwnerDocument()` The `Document` object associated with this node.

  - ### Uses of Document in org.w3c.dom.html

    Subinterfaces of Document in org.w3c.dom.html
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `HTMLDocument` An `HTMLDocument` is the root of the HTML hierarchy and holds the entire content.

    Methods in org.w3c.dom.html that return Document
    Modifier and Type | Method and Description
    --- | ---
    `Document` | HTMLIFrameElement.`getContentDocument()` The document this frame contains, if there is any and it is available, or `null` otherwise.
    `Document` | HTMLFrameElement.`getContentDocument()` The document this frame contains, if there is any and it is available, or `null` otherwise.
    `Document` | HTMLObjectElement.`getContentDocument()` The document this object contains, if there is any and it is available, or `null` otherwise.

  - ### Uses of Document in org.w3c.dom.ls

    Methods in org.w3c.dom.ls that return Document
    Modifier and Type | Method and Description
    --- | ---
    `Document` | LSLoadEvent.`getNewDocument()` The document that finished loading.
    `Document` | LSParser.`parse(LSInput input)` Parse an XML document from a resource identified by a `LSInput`.
    `Document` | LSParser.`parseURI(String uri)` Parse an XML document from a location identified by a URI reference [IETF RFC 2396].

Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2005, 2026, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.