November 2002
Intermediate to advanced
1120 pages
21h 2m
English
Unlike SAX, DOM does not have a class or interface that represents the XML parser. Each parser vendor provides its own unique class.
In Xerces, it's org.apache.xerces.parsers.DOMParser.
In Crimson, it's org.apache.crimson.jaxp.DocumentBuilderImpl.
In Ælfred, it's an inner class, gnu.xml.dom.JAXPFactory$JAXPBuilder.
In Oracle, it's oracle.xml.parser.v2.DOMParser.
In other implementations, it will be something else.
Furthermore, because these classes do not share a common interface or superclass, the methods they use to parse documents vary too. For example, in Xerces the two methods that read XML documents have these signatures:
public void parse (InputSource source) throws SAXException, IOException public void ...
Read now
Unlock full access