public class JXDocumentBuilderFactory extends DocumentBuilderFactory
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BASE_URL
Base URL used in parsing entities.
|
static java.lang.String |
DEBUG_MODE
Sets Debug Mode - Boolean.TRUE or Boolean.FALSE
|
static java.lang.String |
DTD_OBJECT
DTD Object to be used for validation.
|
static java.lang.String |
ERROR_ENCODING
Encoding for errors report via error stream (only if ERROR_STREAM is set)
|
static java.lang.String |
ERROR_STREAM
Error stream for reporting errors.
|
static java.lang.String |
NODE_FACTORY
Set NodeFactory to build custom Nodes
|
static java.lang.String |
SCHEMA_LANGUAGE
Schema language attribute for validation.
|
static java.lang.String |
SCHEMA_OBJECT
Schema Object to be used for validation.
|
static java.lang.String |
SCHEMA_SOURCE
Schema source attribute for validation.
|
static java.lang.String |
SHOW_WARNINGS
Boolean to ignore warnings - Boolean.TRUE or Boolean.FALSE
|
static java.lang.String |
USE_DTD_ONLY_FOR_VALIDATION
If true, DTD Object is used only for validation and is not added to the parser document
|
static java.lang.String |
XSDRECNS
XMLSchema attribute value for validation.
|
| Constructor and Description |
|---|
JXDocumentBuilderFactory()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Allows the user to retrieve specific attributes on the underlying implementation.
|
boolean |
getFeature(java.lang.String name) |
javax.xml.validation.Schema |
getSchema() |
boolean |
isIgnoreElementContentWhitespace() |
DocumentBuilder |
newDocumentBuilder()
Creates a new instance of a DocumentBuilder using the currently configured parameters.
|
void |
setAttribute(java.lang.String name, java.lang.Object value)
Allows the user to set specific attributes on the underlying implementation.
|
void |
setFeature(java.lang.String name, boolean value) |
void |
setIgnoreElementContentWhitespace(boolean whitespace) |
void |
setSchema(javax.xml.validation.Schema schema) |
isCoalescing, isExpandEntityReferences, isIgnoringComments, isIgnoringElementContentWhitespace, isNamespaceAware, isValidating, newInstance, setCoalescing, setExpandEntityReferences, setIgnoringComments, setIgnoringElementContentWhitespace, setNamespaceAware, setValidatingpublic static final java.lang.String ERROR_STREAM
public static final java.lang.String ERROR_ENCODING
public static final java.lang.String SHOW_WARNINGS
public static final java.lang.String DEBUG_MODE
public static final java.lang.String NODE_FACTORY
public static final java.lang.String DTD_OBJECT
public static final java.lang.String USE_DTD_ONLY_FOR_VALIDATION
public static final java.lang.String SCHEMA_OBJECT
public static final java.lang.String BASE_URL
public static final java.lang.String SCHEMA_LANGUAGE
public static final java.lang.String SCHEMA_SOURCE
public static final java.lang.String XSDRECNS
public DocumentBuilder newDocumentBuilder() throws ParserConfigurationException
newDocumentBuilder in class DocumentBuilderFactoryParserConfigurationException - if a DocumentBuilder cannot be created which satisfies the configuration requestedpublic boolean isIgnoreElementContentWhitespace()
public void setIgnoreElementContentWhitespace(boolean whitespace)
public void setAttribute(java.lang.String name,
java.lang.Object value)
throws java.lang.IllegalArgumentException
setAttribute in class DocumentBuilderFactoryname - The name of the attribute.value - The value of the attribute.java.lang.IllegalArgumentException - thrown if the underlying implementation doesn't recognize the attribute.public java.lang.Object getAttribute(java.lang.String name)
throws java.lang.IllegalArgumentException
getAttribute in class DocumentBuilderFactoryname - The name of the attribute.java.lang.IllegalArgumentException - thrown if the underlying implementation doesn't recognize the attribute.public void setFeature(java.lang.String name,
boolean value)
throws ParserConfigurationException
ParserConfigurationExceptionpublic boolean getFeature(java.lang.String name)
throws ParserConfigurationException
ParserConfigurationExceptionpublic void setSchema(javax.xml.validation.Schema schema)
public javax.xml.validation.Schema getSchema()