Starting the DOM process in Java
Java X API:import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.FactoryConfigurationError; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.DocumentBuilder;
Parsing errors come from the SAX implementation:import org.xml.sax.SAXException; import org.xml.sax.SAXParseException;
The W3C definition for a DOM and DOM exceptions:import org.w3c.dom.Document; import org.w3c.dom.DOMException;