Uses of Interface org.w3c.dom.Document (Java Platform SE 8 )
Date: 2015-11-19

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

- Packages that use Document
  Package | Description
  --- | ---
  javax.imageio.metadata | A package of the Java Image I/O API dealing with reading and writing metadata.
  javax.xml.parsers | Provides classes allowing the processing of XML documents.
  javax.xml.soap | Provides the API for creating and building SOAP messages.
  org.w3c.dom | Provides the interfaces for the Document Object Model (DOM).
  org.w3c.dom.ls |

- - ### Uses of Document in javax.imageio.metadata

    Methods in javax.imageio.metadata that return Document
    Modifier and Type | Method and Description
    --- | ---
    `Document` | IIOMetadataNode.`getOwnerDocument()` Returns `null`, since `IIOMetadataNode`s do not belong to any `Document`.

  - ### Uses of Document in javax.xml.parsers

    Methods in javax.xml.parsers that return Document
    Modifier and Type | Method and Description
    --- | ---
    `abstract Document` | DocumentBuilder.`newDocument()` Obtain a new instance of a DOM `Document` object to build a DOM tree with.
    `Document` | DocumentBuilder.`parse(File f)` Parse the content of the given file as an XML document and return a new DOM `Document` object.
    `abstract Document` | DocumentBuilder.`parse(InputSource is)` Parse the content of the given input source as an XML document and return a new DOM `Document` object.
    `Document` | DocumentBuilder.`parse(InputStream is)` Parse the content of the given `InputStream` as an XML document and return a new DOM `Document` object.
    `Document` | DocumentBuilder.`parse(InputStream is, String systemId)` Parse the content of the given `InputStream` as an XML document and return a new DOM `Document` object.
    `Document` | DocumentBuilder.`parse(String uri)` Parse the content of the given URI as an XML document and return a new DOM `Document` object.

  - ### Uses of Document in javax.xml.soap

    Classes in javax.xml.soap that implement Document
    Modifier and Type | Class and Description
    --- | ---
    `class` | `SOAPPart` The container for the SOAP-specific portion of a `SOAPMessage` object.

    Methods in javax.xml.soap that return Document
    Modifier and Type | Method and Description
    --- | ---
    `Document` | SOAPBody.`extractContentAsDocument()` Creates a new DOM ``Document`` and sets the first child of this `SOAPBody` as it's document element.

    Methods in javax.xml.soap with parameters of type Document
    Modifier and Type | Method and Description
    --- | ---
    `SOAPBodyElement` | SOAPBody.`addDocument(Document document)` Adds the root node of the DOM ``Document`` to this `SOAPBody` object.

  - ### 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.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
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.