![](resources/join.gif)
![Home](graphics/ext-2-label-3.jpg)
![](resources/separator.gif)
![Readme](graphics/index-label-3.jpg)
![Charter](graphics/charter-label-3.jpg)
![Release Info](graphics/releases-label-3.jpg)
![](resources/separator.gif)
![Installation](graphics/install-label-3.jpg)
![Download](graphics/ext-16-label-3.jpg)
![Bug-Reporting](graphics/jira-label-3.jpg)
![](resources/separator.gif)
![FAQs](graphics/faqs-label-3.jpg)
![Samples](graphics/samples-label-3.jpg)
![API JavaDoc](graphics/api-label-3.jpg)
![](resources/separator.gif)
![Features](graphics/features-label-3.jpg)
![Properties](graphics/properties-label-1.jpg)
![](resources/separator.gif)
![XNI Manual](graphics/xni-label-3.jpg)
![XML Schema](graphics/xml-schema-label-3.jpg)
![SAX](graphics/sax-label-3.jpg)
![DOM](graphics/dom-label-3.jpg)
![Limitations](graphics/limitations-label-3.jpg)
![](resources/separator.gif)
![Source Repository](graphics/ext-74-label-3.jpg)
![User Mail Archive](graphics/ext-76-label-3.jpg)
![Dev Mail Archive](graphics/ext-78-label-3.jpg)
![](resources/close.gif)
|
| |
![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | http://xml.org/sax/properties/xml-string | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) |
| | Desc:
|
Get the string of characters associated with the current event.
If the parser recognizes and supports this property but is not
currently parsing text, it should return null.
| Type:
| java.lang.String
| Access:
| read-only
| Note:
|
This property is currently not supported because the contents of
the XML string returned by this property is not well defined.
|
|
![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | http://apache.org/xml/properties/schema/external-schemaLocation | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) |
| | Desc:
|
The XML Schema Recommendation explicitly states that the inclusion
of schemaLocation/noNamespaceSchemaLocation attributes is only a
hint; it does not mandate that these attributes must be used to
locate schemas. Similar situation happens to <import> element in
schema documents. This property allows the user to specify a list of
schemas to use. If the targetNamespace of a schema (specified
using this property) matches the targetNamespace of a schema
occurring in the instance document in schemaLocation attribute, or
if the targetNamespace matches the namespace attribute of <import>
element, the schema specified by the user using this property will
be used (i.e., the schemaLocation attribute in the instance document
or on the <import> element will be effectively ignored).
| Type:
| java.lang.String
| Access:
| read-write
| Note:
|
The syntax is the same as for schemaLocation attributes in
instance documents: e.g, "http://www.example.com file_name.xsd".
The user can specify more than one XML Schema in the list.
|
|
![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) |
| | Desc:
|
This property allows the user to specify an XML Schema with no
namespace.
| Type:
| java.lang.String
| Access:
| read-write
| Note:
|
The syntax is a same as for the noNamespaceSchemaLocation attribute
that may occur in an instance document: e.g."file_name.xsd". The
user may specify only one XML Schema. For more information see the
documentation for the
http://apache.org/xml/properties/schema/external-schemaLocation
property.
|
|
![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | http://apache.org/xml/properties/input-buffer-size | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) |
| | Desc:
|
The size of the input buffer in the readers. This determines how many
bytes to read for each chunk.
| Type:
| java.lang.Integer
| Access:
| read-write
| Since:
| Xerces-J 2.1.0
| Note:
|
Some tests indicate that a bigger buffer size can improve the parsing
performance for relatively large files. The default buffer size
in Xerces is 2K. This would give a good performance for small documents
(less than 10K). For documents larger than 10K, specifying the buffer
size to 4K or 8K will significantly improve the performance. But it's not
recommended to set it to a value larger than 16K. For really tiny
documents (1K, for example), you can also set it to a value less than 2K,
to get the best performance.
| Note:
|
There are some conditions where the size of the parser's internal buffers
may be increased beyond the size specified for the input buffer. This would
happen in places where the text in the document cannot be split, for
instance if the document contains a name which is longer than the input
buffer.
|
|
![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | http://apache.org/xml/properties/security-manager | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) |
| | Desc:
|
It is possible to create XML documents whose processing could
result in the use of all system resources. This property enables
Xerces to detect such documents, and abort their processing.
| Type:
| org.apache.xerces.util.SecurityManager
| Access:
| read-write
| Since:
| Xerces-J 2.3.0
| Note:
|
The org.apache.xerces.util.SecurityManager class
contains a number of methods that allow applications to tailor Xerces's
tolerance of document constructs that could result in the heavy
consumption of system resources (see the javadoc of this class for
details). Default values that should be appropriate for many
environments are provided when the class is instantiated. Xerces will not
behave in a strictly spec-compliant way when this property is set.
By default, this property is not set; Xerces's behaviour is therefore strictly
spec-compliant by default.
|
|
|
| |
![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | http://apache.org/xml/properties/dom/current-element-node | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) |
| | Desc:
| The current DOM element node while parsing.
| Type:
| org.w3c.dom.Element
| Access:
| read-only
| Note:
|
This property is useful for determining the location with a DOM
document when an error occurs.
|
|
![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | http://apache.org/xml/properties/dom/document-class-name | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) |
| | Desc:
|
The fully qualified name of the class implementing
the org.w3c.dom.Document interface. The
implementation used must have a zero argument constructor.
| Type:
| java.lang.String
| Default:
| "org.apache.xerces.dom.DocumentImpl"
| Access:
| read-write
| Note:
|
When the document class name is set to a value other than the
name of the default document factory, the deferred node expansion
feature does not work.
|
|
|
| |
![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | http://xml.org/sax/properties/declaration-handler | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) |
| | Desc:
| Set the handler for DTD declarations.
| Type:
| org.xml.sax.ext.DeclHandler
| Access:
| read-write
|
|
![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | http://xml.org/sax/properties/lexical-handler | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) |
| | Desc:
| Set the handler for lexical parsing events.
| Type:
| org.xml.sax.ext.LexicalHandler
| Access:
| read-write
|
|
![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | http://xml.org/sax/properties/dom-node | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) |
| | Desc:
|
The DOM node currently being visited, if SAX is being used as
a DOM iterator. If the parser recognizes and supports this
property but is not currently visiting a DOM node, it should
return null.
| Type:
| org.w3c.dom.Node
| Access:
|
(parsing) read-only;
(not parsing) read-write;
| Note:
|
This property is only for SAX parser implementations used as
DOM tree walkers. Currently, Xerces does not have this
functionality.
|
|
![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | http://xml.org/sax/properties/document-xml-version | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) | ![](resources/void.gif) |
| | Desc:
|
A literal string describing the actual XML version
of the document, such as "1.0" or "1.1".
| Type:
| java.lang.String
| Access:
| read-only
| Since:
| Xerces-J 2.7.0
| Note:
|
This property may only be examined during a parse after the
startDocument callback has been completed.
|
|
|
|
|