| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private static final String | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Object | Returns: value The value of the attribute.The name of the attribute. name)Allows the user to retrieve specific attributes on the underlying implementation. |
| public abstract boolean | Returns: State of the named feature.Feature name. name)Get the state of the named feature. |
| public Schema | Returns: theSchema object that was last set through
the setSchema(Schema) method, or null
if the method was not invoked since a DocumentBuilderFactory
is created.Gets the |
| public boolean | Returns: true if the factory is configured to produce parsers which converts CDATA nodes to Text nodes and appends it to the adjacent (if any) Text node; false otherwise.Indicates whether or not the factory is configured to produce parsers which converts CDATA nodes to Text nodes and appends it to the adjacent (if any) Text node. |
| public boolean | Returns: true if the factory is configured to produce parsers which expand entity reference nodes; false otherwise.Indicates whether or not the factory is configured to produce parsers which expand entity reference nodes. |
| public boolean | Returns: true if the factory is configured to produce parsers which ignores comments; false otherwise.Indicates whether or not the factory is configured to produce parsers which ignores comments. |
| public boolean | Returns: true if the factory is configured to produce parsers which ignore ignorable whitespace in element content; false otherwise.Indicates whether or not the factory is configured to produce parsers which ignore ignorable whitespace in element content. |
| public boolean | Returns: true if the factory is configured to produce parsers which are namespace aware; false otherwise.Indicates whether or not the factory is configured to produce parsers which are namespace aware. |
| public boolean | Returns: true if the factory is configured to produce parsers which validate the XML content during parse; false otherwise.Indicates whether or not the factory is configured to produce parsers which validate the XML content during parse. |
| public boolean | |
| private static DocumentBuilderFactory | |
| public static DocumentBuilderFactory | Returns: A new instance of theDocumentBuilderFactory builtin
system-default implementation.Creates a new instance of the |
| public static DocumentBuilderFactory | Returns: a new instance of theDocumentBuilderFactory builtin
system-default implementation.Creates a new NamespaceAware instance of the |
| public abstract DocumentBuilder | Returns: A new instance of a DocumentBuilder.Creates a new instance of a |
| public static DocumentBuilderFactory | Returns: New instance of aDocumentBuilderFactoryObtains a new instance of a |
| public static DocumentBuilderFactory | Returns: New instance of aDocumentBuilderFactoryfully qualified factory class name that provides
implementation of factoryClassName, ClassLoader javax.xml.parsers.DocumentBuilderFactory.ClassLoader used to load the factory class. If null
current Thread's context classLoader is used to load the factory class.Obtain a new instance of a |
| public static DocumentBuilderFactory | Returns: a new instance of aDocumentBuilderFactoryCreates a new NamespaceAware instance of a |
| public static DocumentBuilderFactory | Returns: a new instance of aDocumentBuilderFactorya fully qualified factory class name that provides
implementation of
factoryClassName, ClassLoader javax.xml.parsers.DocumentBuilderFactory.the classLoader)ClassLoader used to load the factory class.
If it is null, the current Thread's
context classLoader is used to load the factory class.Creates a new NamespaceAware instance of a |
| public abstract void | setAttribute(String
The name of the attribute. name, Object The value of the attribute. value)Allows the user to set specific attributes on the underlying implementation. |
| public void | setCoalescing(boolean
true if the parser produced will convert CDATA nodes
to Text nodes and append it to the adjacent (if any)
text node; false otherwise. coalescing)Specifies that the parser produced by this code will convert CDATA nodes to Text nodes and append it to the adjacent (if any) text node. |
| public void | setExpandEntityReferences(boolean
true if the parser produced will expand entity
reference nodes; false otherwise. expandEntityRef)Specifies that the parser produced by this code will expand entity reference nodes. |
| public abstract void | setFeature(String
Feature name. name, boolean Is feature state value)true or false.Set a feature for this |
| public void | setIgnoringComments(boolean
boolean value to ignore comments during processingSpecifies that the parser produced by this code will ignore comments. |
| public void | setIgnoringElementContentWhitespace(boolean
true if the parser created must eliminate whitespace
in the element content when parsing XML documents;
false otherwise. whitespace)Specifies that the parsers created by this factory must eliminate whitespace in element content (sometimes known loosely as 'ignorable whitespace') when parsing XML documents (see XML Rec 2.10). |
| public void | setNamespaceAware(boolean
true if the parser produced will provide support
for XML namespaces; false otherwise. awareness)Specifies that the parser produced by this code will provide support for XML namespaces. |
| public void | |
| public void | setValidating(boolean
true if the parser produced will validate documents
as they are parsed; false otherwise. validating)Specifies that the parser produced by this code will validate documents as they are parsed. |
| public void | setXIncludeAware(final boolean
Set XInclude processing to state)true or
falseSet state of XInclude processing. |
| coalescing | back to summary |
|---|---|
| private boolean coalescing | |
| DEFAULT_IMPL | back to summary |
|---|---|
| private static final String DEFAULT_IMPL | |
| expandEntityRef | back to summary |
|---|---|
| private boolean expandEntityRef | |
| ignoreComments | back to summary |
|---|---|
| private boolean ignoreComments | |
| namespaceAware | back to summary |
|---|---|
| private boolean namespaceAware | |
| validating | back to summary |
|---|---|
| private boolean validating | |
| whitespace | back to summary |
|---|---|
| private boolean whitespace | |
| DocumentBuilderFactory | back to summary |
|---|---|
| protected DocumentBuilderFactory() Protected constructor to prevent instantiation.
Use | |
| getAttribute | back to summary |
|---|---|
| public abstract Object getAttribute(String name) throws IllegalArgumentException Allows the user to retrieve specific attributes on the underlying implementation.
| |
| getFeature | back to summary |
|---|---|
| public abstract boolean getFeature(String name) throws ParserConfigurationException Get the state of the named feature.
Feature names are fully qualified
| |
| getSchema | back to summary |
|---|---|
| public Schema getSchema() Gets the
| |
| isCoalescing | back to summary |
|---|---|
| public boolean isCoalescing() Indicates whether or not the factory is configured to produce parsers which converts CDATA nodes to Text nodes and appends it to the adjacent (if any) Text node.
| |
| isExpandEntityReferences | back to summary |
|---|---|
| public boolean isExpandEntityReferences() Indicates whether or not the factory is configured to produce parsers which expand entity reference nodes.
| |
| isIgnoringComments | back to summary |
|---|---|
| public boolean isIgnoringComments() Indicates whether or not the factory is configured to produce parsers which ignores comments.
| |
| isIgnoringElementContentWhitespace | back to summary |
|---|---|
| public boolean isIgnoringElementContentWhitespace() Indicates whether or not the factory is configured to produce parsers which ignore ignorable whitespace in element content.
| |
| isNamespaceAware | back to summary |
|---|---|
| public boolean isNamespaceAware() Indicates whether or not the factory is configured to produce parsers which are namespace aware.
| |
| isValidating | back to summary |
|---|---|
| public boolean isValidating() Indicates whether or not the factory is configured to produce parsers which validate the XML content during parse.
| |
| isXIncludeAware | back to summary |
|---|---|
| public boolean isXIncludeAware() Get state of XInclude processing.
| |
| makeNSAware | back to summary |
|---|---|
| private static DocumentBuilderFactory makeNSAware(DocumentBuilderFactory dbf) | |
| newDefaultInstance | back to summary |
|---|---|
| public static DocumentBuilderFactory newDefaultInstance() Creates a new instance of the
| |
| newDefaultNSInstance | back to summary |
|---|---|
| public static DocumentBuilderFactory newDefaultNSInstance() Creates a new NamespaceAware instance of the Implementation Specification In addition to creating a factory instance using the same process as
| |
| newDocumentBuilder | back to summary |
|---|---|
| public abstract DocumentBuilder newDocumentBuilder() throws ParserConfigurationException Creates a new instance of a
| |
| newInstance | back to summary |
|---|---|
| public static DocumentBuilderFactory newInstance() Obtains a new instance of a
Once an application has obtained a reference to a
Tip for Trouble-shooting
Setting the
If you have problems loading java -Djaxp.debug=1 YourProgram ....
| |
| newInstance | back to summary |
|---|---|
| public static DocumentBuilderFactory newInstance(String factoryClassName, ClassLoader classLoader) Obtain a new instance of a Once an application has obtained a reference to a Tip for Trouble-shootingSetting the If you have problems try: java -Djaxp.debug=1 YourProgram ....
| |
| newNSInstance | back to summary |
|---|---|
| public static DocumentBuilderFactory newNSInstance() Creates a new NamespaceAware instance of a Implementation Specification In addition to creating a factory instance using the same process as
| |
| newNSInstance | back to summary |
|---|---|
| public static DocumentBuilderFactory newNSInstance(String factoryClassName, ClassLoader classLoader) Creates a new NamespaceAware instance of a Implementation Specification In addition to creating a factory instance using the same process as
| |
| setAttribute | back to summary |
|---|---|
| public abstract void setAttribute(String name, Object value) throws IllegalArgumentException Allows the user to set specific attributes on the underlying implementation.
All implementations that implement JAXP 1.5 or newer are required to
support the
| |
| setCoalescing | back to summary |
|---|---|
| public void setCoalescing(boolean coalescing) Specifies that the parser produced by this code will
convert CDATA nodes to Text nodes and append it to the
adjacent (if any) text node. By default the value of this is set to
| |
| setExpandEntityReferences | back to summary |
|---|---|
| public void setExpandEntityReferences(boolean expandEntityRef) Specifies that the parser produced by this code will
expand entity reference nodes. By default the value of this is set to
| |
| setFeature | back to summary |
|---|---|
| public abstract void setFeature(String name, boolean value) throws ParserConfigurationException Set a feature for this
Feature names are fully qualified
All implementations are required to support the
| |
| setIgnoringComments | back to summary |
|---|---|
| public void setIgnoringComments(boolean ignoreComments) Specifies that the parser produced by this code will
ignore comments. By default the value of this is set to
| |
| setIgnoringElementContentWhitespace | back to summary |
|---|---|
| public void setIgnoringElementContentWhitespace(boolean whitespace) Specifies that the parsers created by this factory must eliminate
whitespace in element content (sometimes known loosely as
'ignorable whitespace') when parsing XML documents (see XML Rec
2.10). Note that only whitespace which is directly contained within
element content that has an element only content model (see XML
Rec 3.2.1) will be eliminated. Due to reliance on the content model
this setting requires the parser to be in validating mode. By default
the value of this is set to
| |
| setNamespaceAware | back to summary |
|---|---|
| public void setNamespaceAware(boolean awareness) Specifies that the parser produced by this code will
provide support for XML namespaces. By default the value of this is set
to
| |
| setSchema | back to summary |
|---|---|
| public void setSchema(Schema schema) Set the
When a When errors are found by the validator, the parser is responsible
to report them to the user-specified A validator may modify the outcome of a parse (for example by adding default values that were missing in documents), and a parser is responsible to make sure that the application will receive modified DOM trees.
Initially, null is set as the
This processing will take effect even if
the It is an error to use
the Note for implementors
A parser must be able to work with any
| |
| setValidating | back to summary |
|---|---|
| public void setValidating(boolean validating) Specifies that the parser produced by this code will
validate documents as they are parsed. By default the value of this
is set to Note that "the validation" here means a validating parser as defined in the XML recommendation. In other words, it essentially just controls the DTD validation. (except the legacy two properties defined in JAXP 1.2.)
To use modern schema languages such as W3C XML Schema or
RELAX NG instead of DTD, you can configure your parser to be
a non-validating parser by leaving the
| |
| setXIncludeAware | back to summary |
|---|---|
| public void setXIncludeAware(final boolean state) Set state of XInclude processing. If XInclude markup is found in the document instance, should it be processed as specified in XML Inclusions (XInclude) Version 1.0. XInclude processing defaults to
| |