If you want to rely on the default JAXP search mechanism you should instead use one of the simple
members of the XMLReaders enumeration, or use one of the simple constructors on
XMLReaderXSDFactory or XMLReaderSchemaFactory.
See the documentation for SAXParserFactory for the details on what the factoryClassName
and classLoader should be.
org.jdom2.input.sax
| Modifier and Type | Field and Description |
|---|---|
| private final SAXParserFactory | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | XMLReaderJAXPFactory(final String
The name of the implementation to use for the SAXParserFactory. factoryClassName, final ClassLoader The classloader to use for locating the SAXParserFactory (may be null). classLoader, boolean Whether this should create DTD Validating XMLReaders. dtdvalidate)Create an XMLReaderJAXPFactory using the specified factory name, classloader, and dtdvalidating flag. |
| Modifier and Type | Method and Description |
|---|---|
| public XMLReader | createXMLReader()
Implements org. |
| public boolean | isValidating()
Implements org. |
| instance | back to summary |
|---|---|
| private final SAXParserFactory instance | |
| validating | back to summary |
|---|---|
| private final boolean validating | |
| XMLReaderJAXPFactory | back to summary |
|---|---|
| public XMLReaderJAXPFactory(final String factoryClassName, final ClassLoader classLoader, boolean dtdvalidate) Create an XMLReaderJAXPFactory using the specified factory name, classloader, and dtdvalidating flag.
| |
| createXMLReader | back to summary |
|---|---|
| public XMLReader createXMLReader() throws JDOMException Implements org. Doc from org. Return a new XMLReader according to the implementation of this
XMLReaderJDOMFactory instance. The XMLReader is expected to be a new
instance that is unrelated to any other XMLReaders, and can be reused at
will by
| |
| isValidating | back to summary |
|---|---|
| public boolean isValidating() Implements org. Doc from org. Does an XMLReader from this factory do more than just well-formed checks.
| |