Uses of Class javax.xml.parsers.DocumentBuilder (Java Platform SE 8 )
Date: 2026-03-29

## Uses of Class
javax.xml.parsers.DocumentBuilder

- Packages that use DocumentBuilder
  Package | Description
  --- | ---
  javax.xml.bind.annotation | Defines annotations for customizing Java program elements to XML Schema mapping.
  javax.xml.parsers | Provides classes allowing the processing of XML documents.

- - ### Uses of DocumentBuilder in javax.xml.bind.annotation

    Methods in javax.xml.bind.annotation that return DocumentBuilder
    Modifier and Type | Method and Description
    --- | ---
    `DocumentBuilder` | W3CDomHandler.`getBuilder()`

    Methods in javax.xml.bind.annotation with parameters of type DocumentBuilder
    Modifier and Type | Method and Description
    --- | ---
    `void` | W3CDomHandler.`setBuilder(DocumentBuilder builder)`

    Constructors in javax.xml.bind.annotation with parameters of type DocumentBuilder
    Constructor and Description
    `W3CDomHandler(DocumentBuilder builder)` Constructor that allows applications to specify which DOM implementation to be used.

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

    Methods in javax.xml.parsers that return DocumentBuilder
    Modifier and Type | Method and Description
    --- | ---
    `abstract DocumentBuilder` | DocumentBuilderFactory.`newDocumentBuilder()` Creates a new instance of a `DocumentBuilder` using the currently configured parameters.

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, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.