javax.xml.parsers (Java SE 26 & JDK 26)
Description: declaration: module: java.xml, package: javax.xml.parsers
Keywords: javax.xml.parsers package

# Package javax.xml.parsers

package javax.xml.parsers

Provides the classes for processing XML documents with a SAX (Simple API for XML) parser or a DOM (Document Object Model) Document builder. The JAXP Plugability layer allows an application programmer to specify an implementation and configure where to locate it.

Since:
  1.4

- Related Packages
  Package
  Description
  javax.xml
  Defines constants for XML processing.
- Class
  Description
  DocumentBuilder
  Defines the API to obtain DOM Document instances from an XML document.
  DocumentBuilderFactory
  Defines a factory API that enables applications to obtain a parser that produces DOM object trees from XML documents.
  FactoryConfigurationError
  Thrown when a problem with configuration with the Parser Factories exists.
  ParserConfigurationException
  Indicates a serious configuration error.
  SAXParser
  Defines the API that wraps an `XMLReader` implementation class.
  SAXParserFactory
  Defines a factory API that enables applications to configure and obtain a SAX based parser to parse XML documents.