-
Bug
-
Resolution: Fixed
-
P4
-
7
-
1.4
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2179685 | 7 | Joe Wang | P4 | Closed | Fixed | m05 |
JDK-2182537 | 6u18 | Joe Wang | P4 | Resolved | Fixed | b02 |
There is the property http://apache.org/xml/properties/dom/current-element-node
which is very useful for determining error node during validation.
com.sun.org.apache.xerces.internal.impl.Constants.java has its definition but
comparing to original Xerces impl the
com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.java
getProperty method lack of support of this property.
P.S. Actually there is a big problem to deal with found error. During validation
we have little information for good error handling. F.g. during in-memory DOM
validation we can get only hardcoded "strange" error message from the
SAXParseException).
I think the best way will be to change the ErrorHandler to the specialized
validation error handler like below:
public interface ValidationErrorHandler {
public boolean handleError(ErrorInformation ei);
}
where handleError will return whether validator can continue validation and
ErrorInformation has error node, error message text.
It will be great to have access to the schema part(grammar part) responsible for
this error (f.g. using Schema Object Model).
which is very useful for determining error node during validation.
com.sun.org.apache.xerces.internal.impl.Constants.java has its definition but
comparing to original Xerces impl the
com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.java
getProperty method lack of support of this property.
P.S. Actually there is a big problem to deal with found error. During validation
we have little information for good error handling. F.g. during in-memory DOM
validation we can get only hardcoded "strange" error message from the
SAXParseException).
I think the best way will be to change the ErrorHandler to the specialized
validation error handler like below:
public interface ValidationErrorHandler {
public boolean handleError(ErrorInformation ei);
}
where handleError will return whether validator can continue validation and
ErrorInformation has error node, error message text.
It will be great to have access to the schema part(grammar part) responsible for
this error (f.g. using Schema Object Model).
- backported by
-
JDK-2182537 JAXP issue 49 : Support dom/current-element-node property
-
- Resolved
-
-
JDK-2179685 JAXP issue 49 : Support dom/current-element-node property
-
- Closed
-