class JAXPHelper
extends java.lang.Object
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 CLASSPATHModifier | Constructor and Description |
---|---|
protected |
JAXPHelper() |
Modifier and Type | Method and Description |
---|---|
static org.w3c.dom.Document |
createDocument(boolean validating,
boolean namespaceAware) |
static org.xml.sax.XMLReader |
createXMLReader(boolean validating,
boolean namespaceAware)
This method attempts to use JAXP to locate the SAX2 XMLReader
implementation.
|
public static org.xml.sax.XMLReader createXMLReader(boolean validating, boolean namespaceAware) throws java.lang.Exception
validating
- DOCUMENT ME!namespaceAware
- DOCUMENT ME!java.lang.Exception
- DOCUMENT ME!public static org.w3c.dom.Document createDocument(boolean validating, boolean namespaceAware) throws java.lang.Exception
java.lang.Exception