getAttribute
public Object getAttribute(String name)
throws IllegalArgumentException
Retrieves the named attribute value from the underlying implementation.
name
- the name of the attribute
isCoalescing
public boolean isCoalescing()
Indicates whether document builders obtained from this factory will
convert CDATA sections to text nodes and normalize adjacent text nodes
into a single text node.
isExpandEntityReferences
public boolean isExpandEntityReferences()
Indicates whether document builders obtained from this factory will
expand entity reference nodes.
isIgnoringComments
public boolean isIgnoringComments()
Indicates whether document builders obtained from this factory will
discard comment nodes.
isIgnoringElementContentWhitespace
public boolean isIgnoringElementContentWhitespace()
Indicates whether document builders obtained from this factory will
eliminate whitespace within elements that have an element-only content
model.
isNamespaceAware
public boolean isNamespaceAware()
Indicates whether document builders obtained from this factory will be
XML Namespace aware.
isValidating
public boolean isValidating()
Indicates whether document builders obtained from this factory will
validate their input.
isXIncludeAware
public boolean isXIncludeAware()
Indicates whether parsers obtained from this factory will be XInclude
aware.
- 1.3
newInstance
public static DocumentBuilderFactory newInstance()
Creates a new factory instance.
The implementation class to load is the first found in the following
locations:
- the
javax.xml.parsers.DocumentBuilderFactory
system
property
- the above named property value in the
$JAVA_HOME/lib/jaxp.properties
file
- the class name specified in the
META-INF/services/javax.xml.parsers.DocumentBuilderFactory
system resource
- the default factory class
setAttribute
public void setAttribute(String name,
Object value)
throws IllegalArgumentException
Set the named attribute on the underlying implementation.
name
- the name of the attributevalue
- the new value
setCoalescing
public void setCoalescing(boolean coalescing)
Sets whether document builders obtained from this factory will convert
CDATA sections to text nodes and normalize adjacent text nodes into a
single text node.
setExpandEntityReferences
public void setExpandEntityReferences(boolean expandEntityRef)
Sets whether document builders obtained from this factory will expand
entity reference nodes.
setIgnoringComments
public void setIgnoringComments(boolean ignoreComments)
Sets whether document builders obtained from this factory will discard
comment nodes.
setIgnoringElementContentWhitespace
public void setIgnoringElementContentWhitespace(boolean whitespace)
Sets whether document builders obtained from this factory will
eliminate whitespace within elements that have an element-only content
model.
setNamespaceAware
public void setNamespaceAware(boolean awareness)
Sets whether document builders obtained from this factory will be XML
Namespace aware.
setValidating
public void setValidating(boolean validating)
Sets whether document builders obtained from this factory will validate
their input.
setXIncludeAware
public void setXIncludeAware(boolean state)
Sets whether parsers obtained from this factory will be XInclude aware.
- 1.3