Overview | Package | Class | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

## Package javax.xml.parsers

Java XML Parsing API (supports SAX 1.0 and DOM 2.0).

See:
Description

Class Summary
DocumentBuilder | Parser to create a DOM Document from an input source ``
DocumentBuilderFactory | Responsible for creating new DOM parsers
SAXParser | Builder for SAX parsers
SAXParserFactory | Responsible for creating new SAXParsers.

Exception Summary
ParserConfigurationException |

Error Summary
FactoryConfigurationError |

## Package javax.xml.parsers Description

Java XML Parsing API (supports SAX 1.0 and DOM 2.0). JAXP is a standard API to parse XML using either the SAX callback API or directly into the DOM (Document Object Model.) Using JAXP, application code can remain XML-parser independent.

A typical use to create a DOM Document is:

    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder parser = factory.newDocumentBuilder();
    Document doc = parser.parse(myInputSource);

A typical use to create a SAX parser is:

    SAXParserFactory factory = SAXParserFactory.newInstance();
    Parser parser = factory.newSAXParser();
    parser.setDocumentHandler(myDocumentHandler);
    parser.parse(myInputSource);

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES