Package org.dom4j.io
Class JAXPHelper
java.lang.Object
org.dom4j.io.JAXPHelper
JAXPHelper
contains some helper methods for working with JAXP.
These methods are kept in a seperate class to avoid class loading issues,
such that dom4j can work without JAXP on the CLASSPATH- Version:
- $Revision: 1.7 $
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Document
createDocument
(boolean validating, boolean namespaceAware) static XMLReader
createXMLReader
(boolean validating, boolean namespaceAware) This method attempts to use JAXP to locate the SAX2 XMLReader implementation.
-
Constructor Details
-
JAXPHelper
protected JAXPHelper()
-
-
Method Details
-
createXMLReader
public static XMLReader createXMLReader(boolean validating, boolean namespaceAware) throws Exception This method attempts to use JAXP to locate the SAX2 XMLReader implementation. This method uses reflection to avoid being dependent directly on the JAXP classes.- Parameters:
validating
- DOCUMENT ME!namespaceAware
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- Throws:
Exception
- DOCUMENT ME!
-
createDocument
- Throws:
Exception
-