JAXP DOM
Jump to navigation
Jump to search
Internal
Overview
The JAXP DOM API is defined by W3C. The parsers implementing the DOM API translates an entire XML document into a memory tree structure.
The parsing process begins by using DocumentBuilderFactory to create a DocumentBuilder instance. The actual implementation is dictated by the value of the javax.xml.parsers.DocumentBuilderFactory system property. The DocumentBuilder produces a Document object as a result of a parse() method invocation.
Unlike an event-driver parser API, the DOM API is memory and CPU intensive.
DOM Example
Component Packages
- javax.xml.parsers
- org.w3c.dom defines the Document class and other DOM components.