jaxp/src/share/classes/org/xml/sax/package.html
author kvn
Fri, 20 Jun 2008 11:10:05 -0700
changeset 762 1b26adb5fea1
parent 6 7f561c08de6b
permissions -rw-r--r--
6715633: when matching a memory node the adr_type should not change Summary: verify the adr_type of a mach node was not changed Reviewed-by: rasbold, never
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
7f561c08de6b Initial load
duke
parents:
diff changeset
     1
<html><head>
7f561c08de6b Initial load
duke
parents:
diff changeset
     2
<!-- $Id: package.html,v 1.3 2005/05/18 22:30:54 jsuttor Exp $ -->
7f561c08de6b Initial load
duke
parents:
diff changeset
     3
</head><body>
7f561c08de6b Initial load
duke
parents:
diff changeset
     4
7f561c08de6b Initial load
duke
parents:
diff changeset
     5
<p> This package provides the core SAX APIs.
7f561c08de6b Initial load
duke
parents:
diff changeset
     6
Some SAX1 APIs are deprecated to encourage integration of
7f561c08de6b Initial load
duke
parents:
diff changeset
     7
namespace-awareness into designs of new applications
7f561c08de6b Initial load
duke
parents:
diff changeset
     8
and into maintenance of existing infrastructure. </p>
7f561c08de6b Initial load
duke
parents:
diff changeset
     9
7f561c08de6b Initial load
duke
parents:
diff changeset
    10
<p>See <a href='http://www.saxproject.org'>http://www.saxproject.org</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
    11
for more information about SAX.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    12
7f561c08de6b Initial load
duke
parents:
diff changeset
    13
7f561c08de6b Initial load
duke
parents:
diff changeset
    14
<h2> SAX2 Standard Feature Flags </h2>
7f561c08de6b Initial load
duke
parents:
diff changeset
    15
7f561c08de6b Initial load
duke
parents:
diff changeset
    16
<p> One of the essential characteristics of SAX2 is that it added
7f561c08de6b Initial load
duke
parents:
diff changeset
    17
feature flags which can be used to examine and perhaps modify
7f561c08de6b Initial load
duke
parents:
diff changeset
    18
parser modes, in particular modes such as validation.
7f561c08de6b Initial load
duke
parents:
diff changeset
    19
Since features are identified by (absolute) URIs, anyone
7f561c08de6b Initial load
duke
parents:
diff changeset
    20
can define such features.   
7f561c08de6b Initial load
duke
parents:
diff changeset
    21
Currently defined standard feature URIs have the prefix
7f561c08de6b Initial load
duke
parents:
diff changeset
    22
<code>http://xml.org/sax/features/</code> before an identifier such as
7f561c08de6b Initial load
duke
parents:
diff changeset
    23
<code>validation</code>.  Turn features on or off using
7f561c08de6b Initial load
duke
parents:
diff changeset
    24
<em>setFeature</em>.  Those standard identifiers are: </p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    25
7f561c08de6b Initial load
duke
parents:
diff changeset
    26
7f561c08de6b Initial load
duke
parents:
diff changeset
    27
<table border="1" cellpadding="3" cellspacing="0" width="100%">
7f561c08de6b Initial load
duke
parents:
diff changeset
    28
    <tr align="center" bgcolor="#ccccff">
7f561c08de6b Initial load
duke
parents:
diff changeset
    29
	<th>Feature ID</th>
7f561c08de6b Initial load
duke
parents:
diff changeset
    30
	<th>Access</th>
7f561c08de6b Initial load
duke
parents:
diff changeset
    31
	<th>Default</th>
7f561c08de6b Initial load
duke
parents:
diff changeset
    32
	<th>Description</th>
7f561c08de6b Initial load
duke
parents:
diff changeset
    33
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
    34
7f561c08de6b Initial load
duke
parents:
diff changeset
    35
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
    36
	<td>external-general-entities</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    37
	<td><em>read/write</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    38
	<td><em>unspecified</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    39
	<td> Reports whether this parser processes external
7f561c08de6b Initial load
duke
parents:
diff changeset
    40
	    general entities; always true if validating.
7f561c08de6b Initial load
duke
parents:
diff changeset
    41
		</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    42
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
    43
7f561c08de6b Initial load
duke
parents:
diff changeset
    44
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
    45
	<td>external-parameter-entities</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    46
	<td><em>read/write</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    47
	<td><em>unspecified</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    48
	<td> Reports whether this parser processes external
7f561c08de6b Initial load
duke
parents:
diff changeset
    49
	    parameter entities; always true if validating.
7f561c08de6b Initial load
duke
parents:
diff changeset
    50
		</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    51
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
    52
7f561c08de6b Initial load
duke
parents:
diff changeset
    53
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
    54
	<td>is-standalone</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    55
	<td>(parsing) <em>read-only</em>, (not parsing) <em>none</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    56
	<td>not applicable</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    57
	<td> May be examined only during a parse, after the
7f561c08de6b Initial load
duke
parents:
diff changeset
    58
	    <em>startDocument()</em> callback has been completed; read-only.
7f561c08de6b Initial load
duke
parents:
diff changeset
    59
	    The value is true if the document specified standalone="yes" in 
7f561c08de6b Initial load
duke
parents:
diff changeset
    60
	    its XML declaration, and otherwise is false.
7f561c08de6b Initial load
duke
parents:
diff changeset
    61
		</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    62
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
    63
7f561c08de6b Initial load
duke
parents:
diff changeset
    64
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
    65
	<td>lexical-handler/parameter-entities</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    66
	<td><em>read/write</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    67
	<td><em>unspecified</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    68
	<td> A value of "true" indicates that the LexicalHandler will report
7f561c08de6b Initial load
duke
parents:
diff changeset
    69
	    the beginning and end of parameter entities.
7f561c08de6b Initial load
duke
parents:
diff changeset
    70
		</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    71
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
    72
7f561c08de6b Initial load
duke
parents:
diff changeset
    73
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
    74
	<td>namespaces</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    75
	<td><em>read/write</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    76
	<td>true</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    77
	<td> A value of "true" indicates namespace URIs and unprefixed local names
7f561c08de6b Initial load
duke
parents:
diff changeset
    78
	    for element and attribute names will be available.
7f561c08de6b Initial load
duke
parents:
diff changeset
    79
		</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    80
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
    81
7f561c08de6b Initial load
duke
parents:
diff changeset
    82
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
    83
	<td>namespace-prefixes</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    84
	<td><em>read/write</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    85
	<td>false</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    86
	<td> A value of "true" indicates that XML qualified names (with prefixes) and
7f561c08de6b Initial load
duke
parents:
diff changeset
    87
	    attributes (including <em>xmlns*</em> attributes) will be available.
7f561c08de6b Initial load
duke
parents:
diff changeset
    88
		</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    89
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
    90
7f561c08de6b Initial load
duke
parents:
diff changeset
    91
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
    92
	<td>resolve-dtd-uris</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    93
	<td><em>read/write</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    94
	<td><em>true</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
    95
	<td> A value of "true" indicates that system IDs in declarations will
7f561c08de6b Initial load
duke
parents:
diff changeset
    96
	    be absolutized (relative to their base URIs) before reporting.
7f561c08de6b Initial load
duke
parents:
diff changeset
    97
	    (That is the default behavior for all SAX2 XML parsers.)
7f561c08de6b Initial load
duke
parents:
diff changeset
    98
	    A value of "false" indicates those IDs will not be absolutized;
7f561c08de6b Initial load
duke
parents:
diff changeset
    99
	    parsers will provide the base URI from
7f561c08de6b Initial load
duke
parents:
diff changeset
   100
	    <em>Locator.getSystemId()</em>.
7f561c08de6b Initial load
duke
parents:
diff changeset
   101
	    This applies to system IDs passed in <ul>
7f561c08de6b Initial load
duke
parents:
diff changeset
   102
		<li><em>DTDHandler.notationDecl()</em>,
7f561c08de6b Initial load
duke
parents:
diff changeset
   103
		<li><em>DTDHandler.unparsedEntityDecl()</em>, and
7f561c08de6b Initial load
duke
parents:
diff changeset
   104
		<li><em>DeclHandler.externalEntityDecl()</em>.
7f561c08de6b Initial load
duke
parents:
diff changeset
   105
	    </ul>
7f561c08de6b Initial load
duke
parents:
diff changeset
   106
	    It does not apply to <em>EntityResolver.resolveEntity()</em>,
7f561c08de6b Initial load
duke
parents:
diff changeset
   107
	    which is not used to report declarations, or to
7f561c08de6b Initial load
duke
parents:
diff changeset
   108
	    <em>LexicalHandler.startDTD()</em>, which already provides
7f561c08de6b Initial load
duke
parents:
diff changeset
   109
	    the non-absolutized URI.
7f561c08de6b Initial load
duke
parents:
diff changeset
   110
	    </td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   111
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   112
7f561c08de6b Initial load
duke
parents:
diff changeset
   113
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   114
	<td>string-interning</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   115
	<td><em>read/write</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   116
	<td><em>unspecified</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   117
	<td> Has a value of "true" if all XML names (for elements, prefixes,
7f561c08de6b Initial load
duke
parents:
diff changeset
   118
	    attributes, entities, notations, and local names),
7f561c08de6b Initial load
duke
parents:
diff changeset
   119
	    as well as Namespace URIs, will have been interned
7f561c08de6b Initial load
duke
parents:
diff changeset
   120
	    using <em>java.lang.String.intern</em>. This supports fast
7f561c08de6b Initial load
duke
parents:
diff changeset
   121
	    testing of equality/inequality against string constants,
7f561c08de6b Initial load
duke
parents:
diff changeset
   122
	    rather than forcing slower calls to <em>String.equals()</em>.
7f561c08de6b Initial load
duke
parents:
diff changeset
   123
	    </td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   124
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   125
7f561c08de6b Initial load
duke
parents:
diff changeset
   126
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   127
    <td>unicode-normalization-checking</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   128
    <td><em>read/write</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   129
    <td><em>false</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   130
    <td> Controls whether the parser reports Unicode normalization 
7f561c08de6b Initial load
duke
parents:
diff changeset
   131
        errors as described in section 2.13 and Appendix B of the 
7f561c08de6b Initial load
duke
parents:
diff changeset
   132
        XML 1.1 Recommendation. If true, Unicode normalization
7f561c08de6b Initial load
duke
parents:
diff changeset
   133
        errors are reported using the ErrorHandler.error() callback.
7f561c08de6b Initial load
duke
parents:
diff changeset
   134
        Such errors are not fatal in themselves (though, obviously,
7f561c08de6b Initial load
duke
parents:
diff changeset
   135
        other Unicode-related encoding errors may be).
7f561c08de6b Initial load
duke
parents:
diff changeset
   136
		</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   137
    </tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   138
    
7f561c08de6b Initial load
duke
parents:
diff changeset
   139
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   140
	<td>use-attributes2</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   141
	<td><em>read-only</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   142
	<td>not applicable</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   143
	<td> Returns "true" if the <em>Attributes</em> objects passed by
7f561c08de6b Initial load
duke
parents:
diff changeset
   144
	    this parser in <em>ContentHandler.startElement()</em>
7f561c08de6b Initial load
duke
parents:
diff changeset
   145
	    implement the <a href="ext/Attributes2.html"
7f561c08de6b Initial load
duke
parents:
diff changeset
   146
	    ><em>org.xml.sax.ext.Attributes2</em></a> interface.
7f561c08de6b Initial load
duke
parents:
diff changeset
   147
	    That interface exposes additional DTD-related information,
7f561c08de6b Initial load
duke
parents:
diff changeset
   148
	    such as whether the attribute was specified in the
7f561c08de6b Initial load
duke
parents:
diff changeset
   149
	    source text rather than defaulted.
7f561c08de6b Initial load
duke
parents:
diff changeset
   150
		</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   151
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   152
7f561c08de6b Initial load
duke
parents:
diff changeset
   153
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   154
	<td>use-locator2</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   155
	<td><em>read-only</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   156
	<td>not applicable</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   157
	<td> Returns "true" if the <em>Locator</em> objects passed by
7f561c08de6b Initial load
duke
parents:
diff changeset
   158
	    this parser in <em>ContentHandler.setDocumentLocator()</em>
7f561c08de6b Initial load
duke
parents:
diff changeset
   159
	    implement the <a href="ext/Locator2.html"
7f561c08de6b Initial load
duke
parents:
diff changeset
   160
	    ><em>org.xml.sax.ext.Locator2</em></a> interface.
7f561c08de6b Initial load
duke
parents:
diff changeset
   161
	    That interface exposes additional entity information,
7f561c08de6b Initial load
duke
parents:
diff changeset
   162
	    such as the character encoding and XML version used.
7f561c08de6b Initial load
duke
parents:
diff changeset
   163
		</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   164
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   165
7f561c08de6b Initial load
duke
parents:
diff changeset
   166
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   167
	<td>use-entity-resolver2</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   168
	<td><em>read/write</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   169
	<td><em>true</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   170
	<td> Returns "true" if, when <em>setEntityResolver</em> is given
7f561c08de6b Initial load
duke
parents:
diff changeset
   171
	    an object implementing the <a href="ext/EntityResolver2.html"
7f561c08de6b Initial load
duke
parents:
diff changeset
   172
	    ><em>org.xml.sax.ext.EntityResolver2</em></a> interface,
7f561c08de6b Initial load
duke
parents:
diff changeset
   173
	    those new methods will be used.
7f561c08de6b Initial load
duke
parents:
diff changeset
   174
	    Returns "false" to indicate that those methods will not be used.
7f561c08de6b Initial load
duke
parents:
diff changeset
   175
		</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   176
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   177
7f561c08de6b Initial load
duke
parents:
diff changeset
   178
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   179
	<td>validation</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   180
	<td><em>read/write</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   181
	<td><em>unspecified</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   182
	<td> Controls whether the parser is reporting all validity
7f561c08de6b Initial load
duke
parents:
diff changeset
   183
	    errors; if true, all external entities will be read.
7f561c08de6b Initial load
duke
parents:
diff changeset
   184
		</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   185
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   186
7f561c08de6b Initial load
duke
parents:
diff changeset
   187
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   188
	<td>xmlns-uris</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   189
	<td><em>read/write</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   190
	<td><em>false</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   191
	<td> Controls whether, when the <em>namespace-prefixes</em> feature
7f561c08de6b Initial load
duke
parents:
diff changeset
   192
	    is set, the parser treats namespace declaration attributes as
7f561c08de6b Initial load
duke
parents:
diff changeset
   193
	    being in the <em>http://www.w3.org/2000/xmlns/</em> namespace.
7f561c08de6b Initial load
duke
parents:
diff changeset
   194
	    By default, SAX2 conforms to the original "Namespaces in XML"
7f561c08de6b Initial load
duke
parents:
diff changeset
   195
	    Recommendation, which explicitly states that such attributes are
7f561c08de6b Initial load
duke
parents:
diff changeset
   196
	    not in any namespace.
7f561c08de6b Initial load
duke
parents:
diff changeset
   197
	    Setting this optional flag to "true" makes the SAX2 events conform to
7f561c08de6b Initial load
duke
parents:
diff changeset
   198
	    a later backwards-incompatible revision of that recommendation,
7f561c08de6b Initial load
duke
parents:
diff changeset
   199
	    placing those attributes in a namespace.
7f561c08de6b Initial load
duke
parents:
diff changeset
   200
		</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   201
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   202
7f561c08de6b Initial load
duke
parents:
diff changeset
   203
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   204
    <td>xml-1.1</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   205
    <td><em>read-only</em></td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   206
    <td>not applicable</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   207
    <td> Returns "true" if the parser supports both XML 1.1 and XML 1.0.
7f561c08de6b Initial load
duke
parents:
diff changeset
   208
        Returns "false" if the parser supports only XML 1.0.
7f561c08de6b Initial load
duke
parents:
diff changeset
   209
		</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   210
    </tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   211
7f561c08de6b Initial load
duke
parents:
diff changeset
   212
</table>
7f561c08de6b Initial load
duke
parents:
diff changeset
   213
7f561c08de6b Initial load
duke
parents:
diff changeset
   214
<p> Support for the default values of the
7f561c08de6b Initial load
duke
parents:
diff changeset
   215
<em>namespaces</em> and <em>namespace-prefixes</em>
7f561c08de6b Initial load
duke
parents:
diff changeset
   216
properties is required.
7f561c08de6b Initial load
duke
parents:
diff changeset
   217
Support for any other feature flags is entirely optional.
7f561c08de6b Initial load
duke
parents:
diff changeset
   218
</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   219
7f561c08de6b Initial load
duke
parents:
diff changeset
   220
<p> For default values not specified by SAX2,
7f561c08de6b Initial load
duke
parents:
diff changeset
   221
each XMLReader implementation specifies its default,
7f561c08de6b Initial load
duke
parents:
diff changeset
   222
or may choose not to expose the feature flag.
7f561c08de6b Initial load
duke
parents:
diff changeset
   223
Unless otherwise specified here,
7f561c08de6b Initial load
duke
parents:
diff changeset
   224
implementations may support changing current values
7f561c08de6b Initial load
duke
parents:
diff changeset
   225
of these standard feature flags, but not while parsing.
7f561c08de6b Initial load
duke
parents:
diff changeset
   226
</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   227
7f561c08de6b Initial load
duke
parents:
diff changeset
   228
<h2> SAX2 Standard Handler and Property IDs </h2>
7f561c08de6b Initial load
duke
parents:
diff changeset
   229
7f561c08de6b Initial load
duke
parents:
diff changeset
   230
<p> For parser interface characteristics that are described
7f561c08de6b Initial load
duke
parents:
diff changeset
   231
as objects, a separate namespace is defined.  The
7f561c08de6b Initial load
duke
parents:
diff changeset
   232
objects in this namespace are again identified by URI, and
7f561c08de6b Initial load
duke
parents:
diff changeset
   233
the standard property URIs have the prefix
7f561c08de6b Initial load
duke
parents:
diff changeset
   234
<code>http://xml.org/sax/properties/</code> before an identifier such as
7f561c08de6b Initial load
duke
parents:
diff changeset
   235
<code>lexical-handler</code> or
7f561c08de6b Initial load
duke
parents:
diff changeset
   236
<code>dom-node</code>.  Manage those properties using
7f561c08de6b Initial load
duke
parents:
diff changeset
   237
<em>setProperty()</em>.  Those identifiers are: </p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   238
7f561c08de6b Initial load
duke
parents:
diff changeset
   239
<table border="1" cellpadding="3" cellspacing="0" width="100%">
7f561c08de6b Initial load
duke
parents:
diff changeset
   240
    <tr align="center" bgcolor="#ccccff">
7f561c08de6b Initial load
duke
parents:
diff changeset
   241
	<th>Property ID</th>
7f561c08de6b Initial load
duke
parents:
diff changeset
   242
	<th>Description</th>
7f561c08de6b Initial load
duke
parents:
diff changeset
   243
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   244
7f561c08de6b Initial load
duke
parents:
diff changeset
   245
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   246
	<td>declaration-handler</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   247
	<td> Used to see most DTD declarations except those treated
7f561c08de6b Initial load
duke
parents:
diff changeset
   248
	    as lexical ("document element name is ...") or which are
7f561c08de6b Initial load
duke
parents:
diff changeset
   249
	    mandatory for all SAX parsers (<em>DTDHandler</em>).
7f561c08de6b Initial load
duke
parents:
diff changeset
   250
	    The Object must implement <a href="ext/DeclHandler.html"
7f561c08de6b Initial load
duke
parents:
diff changeset
   251
	    ><em>org.xml.sax.ext.DeclHandler</em></a>.
7f561c08de6b Initial load
duke
parents:
diff changeset
   252
	    </td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   253
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   254
7f561c08de6b Initial load
duke
parents:
diff changeset
   255
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   256
        <td>document-xml-version</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   257
        <td> May be examined only during a parse, after the startDocument()
7f561c08de6b Initial load
duke
parents:
diff changeset
   258
            callback has been completed; read-only. This property is a 
7f561c08de6b Initial load
duke
parents:
diff changeset
   259
            literal string describing the actual XML version of the document, 
7f561c08de6b Initial load
duke
parents:
diff changeset
   260
            such as "1.0" or "1.1".
7f561c08de6b Initial load
duke
parents:
diff changeset
   261
            </td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   262
        </tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   263
    
7f561c08de6b Initial load
duke
parents:
diff changeset
   264
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   265
	<td>dom-node</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   266
	<td> For "DOM Walker" style parsers, which ignore their
7f561c08de6b Initial load
duke
parents:
diff changeset
   267
	    <em>parser.parse()</em> parameters, this is used to
7f561c08de6b Initial load
duke
parents:
diff changeset
   268
	    specify the DOM (sub)tree being walked by the parser.
7f561c08de6b Initial load
duke
parents:
diff changeset
   269
	    The Object must implement the
7f561c08de6b Initial load
duke
parents:
diff changeset
   270
	    <em>org.w3c.dom.Node</em> interface.
7f561c08de6b Initial load
duke
parents:
diff changeset
   271
	    </td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   272
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   273
7f561c08de6b Initial load
duke
parents:
diff changeset
   274
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   275
	<td>lexical-handler</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   276
	<td> Used to see some syntax events that are essential in some
7f561c08de6b Initial load
duke
parents:
diff changeset
   277
	    applications:  comments, CDATA delimiters, selected general
7f561c08de6b Initial load
duke
parents:
diff changeset
   278
	    entity inclusions, and the start and end of the DTD
7f561c08de6b Initial load
duke
parents:
diff changeset
   279
	    (and declaration of document element name).
7f561c08de6b Initial load
duke
parents:
diff changeset
   280
	    The Object must implement <a href="ext/LexicalHandler.html"
7f561c08de6b Initial load
duke
parents:
diff changeset
   281
	    ><em>org.xml.sax.ext.LexicalHandler</em></a>.
7f561c08de6b Initial load
duke
parents:
diff changeset
   282
	    </td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   283
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   284
7f561c08de6b Initial load
duke
parents:
diff changeset
   285
    <tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   286
	<td>xml-string</td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   287
	<td> Readable only during a parser callback, this exposes a <b>TBS</b>
7f561c08de6b Initial load
duke
parents:
diff changeset
   288
	    chunk of characters responsible for the current event. </td>
7f561c08de6b Initial load
duke
parents:
diff changeset
   289
	</tr>
7f561c08de6b Initial load
duke
parents:
diff changeset
   290
7f561c08de6b Initial load
duke
parents:
diff changeset
   291
</table>
7f561c08de6b Initial load
duke
parents:
diff changeset
   292
7f561c08de6b Initial load
duke
parents:
diff changeset
   293
<p> All of these standard properties are optional;
7f561c08de6b Initial load
duke
parents:
diff changeset
   294
XMLReader implementations need not support them.
7f561c08de6b Initial load
duke
parents:
diff changeset
   295
</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   296
7f561c08de6b Initial load
duke
parents:
diff changeset
   297
</body></html>