--- old/src/java.xml/share/classes/org/w3c/dom/ls/LSParser.java 2017-12-11 12:46:40.890536445 -0800
+++ new/src/java.xml/share/classes/org/w3c/dom/ls/LSParser.java 2017-12-11 12:46:39.939443589 -0800
@@ -53,7 +53,8 @@
* corresponding DOM document structure. A LSParser
instance
* can be obtained by invoking the
* DOMImplementationLS.createLSParser()
method.
- *
As specified in [DOM Level 3 Core] + *
As specified in + * [DOM Level 3 Core] * , when a document is first made available via the LSParser: *
value
and
* nodeValue
attributes of an Attr
node initially
* return the XML 1.0
- * normalized value. However, if the parameters "
- * validate-if-schema" and "
- * datatype-normalization" are set to true
, depending on the attribute normalization
+ * normalized value. However, if the parameters
+ * "validate-if-schema" and
+ * "datatype-normalization"
+ * are set to true
, depending on the attribute normalization
* used, the attribute values may differ from the ones obtained by the XML
- * 1.0 attribute normalization. If the parameters "
- * datatype-normalization" is set to false
, the XML 1.0 attribute normalization is
+ * 1.0 attribute normalization. If the parameters
+ * "datatype-normalization"
+ * is set to false
, the XML 1.0 attribute normalization is
* guaranteed to occur, and if the attributes list does not contain
* namespace declarations, the attributes
attribute on
- * Element
node represents the property [attributes] defined in [XML Information Set]
- * .
+ * Element
node represents the property [attributes] defined in
+ * [XML Information Set].
* Asynchronous LSParser
objects are expected to also
@@ -102,17 +105,18 @@
*
Note: All events defined in this specification use the
* namespace URI "http://www.w3.org/2002/DOMLS"
.
*
While parsing an input source, errors are reported to the application
- * through the error handler (LSParser.domConfig
's "
- * error-handler" parameter). This specification does in no way try to define all possible
+ * through the error handler (LSParser.domConfig
's
+ * "error-handler"
+ * parameter). This specification does in no way try to define all possible
* errors that can occur while parsing XML, or any other markup, but some
* common error cases are defined. The types (DOMError.type
) of
* errors and warnings defined by this specification are:
*
"check-character-normalization-failure" [error]
"doctype-not-allowed" [fatal]
false
and the following XML file is parsed:
+ * this warning will be raised is if the configuration parameter
+ * "entities"
+ * is set to false
and the following XML file is parsed:
* * <!DOCTYPE root [ <!ENTITY e SYSTEM 'subdir/myentity.ent' ]> * <root> &e; </root>@@ -139,9 +144,9 @@ *
"unbound-prefix-in-entity" [warning]
true
and an unbound namespace prefix is
+ * implementation dependent warning that may be raised if the configuration parameter
+ * "namespaces"
+ * is set to true
and an unbound namespace prefix is
* encountered in an entity's replacement text. Raising this warning is not
* enforced since some existing parsers may not recognize unbound namespace
* prefixes in the replacement text of entities. See also the Document Object Model (DOM) Level 3 Load -and Save Specification. + *
See also the
+ * Document Object Model (DOM) Level 3 Load and Save Specification.
*
* @since 1.5
*/
@@ -180,8 +185,10 @@
* needed parameter values from this DOMConfiguration
* object to the DOMConfiguration
object referenced by the
* Document
object.
- *
In addition to the parameters recognized in on the
- * DOMConfiguration interface defined in [DOM Level 3 Core]
+ *
In addition to the parameters recognized in on the
+ * DOMConfiguration
+ * interface defined in
+ * [DOM Level 3 Core]
* , the DOMConfiguration
objects for LSParser
* add or modify the following parameters:
*
true
true
false
true
false
"infoset"
true
false
true
* false
DOMConfiguration
parameters have been applied. For
- * example, if "
- * validate" is set to true
, the validation is done before invoking the
+ * example, if "validate"
+ * is set to true
, the validation is done before invoking the
* filter.
*/
public LSParserFilter getFilter();
@@ -306,8 +320,8 @@
* terminate the parsing early.
* DOMConfiguration
parameters have been applied. For
- * example, if "
- * validate" is set to true
, the validation is done before invoking the
+ * example, if "validate"
+ * is set to true
, the validation is done before invoking the
* filter.
*/
public void setFilter(LSParserFilter filter);
@@ -340,15 +354,18 @@
* @exception LSException
* PARSE_ERR: Raised if the LSParser
was unable to load
* the XML document. DOM applications should attach a
- * DOMErrorHandler
using the parameter "
- * error-handler" if they wish to get details on the error.
+ * DOMErrorHandler
using the parameter
+ * "error-handler"
+ * if they wish to get details on the error.
*/
public Document parse(LSInput input)
throws DOMException, LSException;
/**
- * Parse an XML document from a location identified by a URI reference [IETF RFC 2396]. If the URI
- * contains a fragment identifier (see section 4.1 in [IETF RFC 2396]), the
+ * Parse an XML document from a location identified by a URI reference
+ * [IETF RFC 2396]. If the URI
+ * contains a fragment identifier (see section 4.1 in
+ * [IETF RFC 2396]), the
* behavior is not defined by this specification, future versions of
* this specification may define the behavior.
* @param uri The location of the XML document to be read.
@@ -364,8 +381,9 @@
* @exception LSException
* PARSE_ERR: Raised if the LSParser
was unable to load
* the XML document. DOM applications should attach a
- * DOMErrorHandler
using the parameter "
- * error-handler" if they wish to get details on the error.
+ * DOMErrorHandler
using the parameter
+ * "error-handler"
+ * if they wish to get details on the error.
*/
public Document parseURI(String uri)
throws DOMException, LSException;
@@ -431,14 +449,17 @@
* LSParser
is asynchronous (LSParser.async
is
* true
).
* ErrorHandler
instance associated with the "
- * error-handler" parameter of the DOMConfiguration
.
+ * the ErrorHandler
instance associated with the
+ * "error-handler"
+ * parameter of the DOMConfiguration
.
* parseWithContext
, the values of the
* following configuration parameters will be ignored and their default
- * values will always be used instead: "
- * validate", "
- * validate-if-schema", and "
- * element-content-whitespace". Other parameters will be treated normally, and the parser is expected
+ * values will always be used instead:
+ * "validate",
+ * "validate-if-schema",
+ * and
+ * "element-content-whitespace".
+ * Other parameters will be treated normally, and the parser is expected
* to call the LSParserFilter
just as if a whole document
* was parsed.
* @param input The LSInput
from which the source document
@@ -463,7 +484,8 @@
* @exception DOMException
* HIERARCHY_REQUEST_ERR: Raised if the content cannot replace, be
* inserted before, after, or as a child of the context node (see also
- * Node.insertBefore
or Node.replaceChild
in [DOM Level 3 Core]
+ * Node.insertBefore
or Node.replaceChild
in
+ * [DOM Level 3 Core]
* ).
* LSParser
doesn't
* support this method, or if the context node is of type
@@ -479,8 +501,9 @@
* @exception LSException
* PARSE_ERR: Raised if the LSParser
was unable to load
* the XML fragment. DOM applications should attach a
- * DOMErrorHandler
using the parameter "
- * error-handler" if they wish to get details on the error.
+ * DOMErrorHandler
using the parameter
+ * "error-handler"
+ * if they wish to get details on the error.
*/
public Node parseWithContext(LSInput input,
Node contextArg,