You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/02/26 15:58:14 UTC
DO NOT REPLY [Bug 6681] New: -
Incorrect features are added to recognized features
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6681>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6681
Incorrect features are added to recognized features
Summary: Incorrect features are added to recognized features
Product: Xerces2-J
Version: 2.0.0
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: DOM
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: lasse.ziegler@firsthop.com
In the constructor of org.apache.xerces.parsers.AbstractDOMParser the INCLUDE_COMMENTS_FEATURE and CREATE_CDATA_NODES_FEATURE are added to the recognized features. These two constants are defined in the same class as:
protected static final String INCLUDE_COMMENTS_FEATURE = Constants.INCLUDE_COMMENTS_FEATURE;
protected static final String CREATE_CDATA_NODES_FEATURE = Constants.CREATE_CDATA_NODES_FEATURE;
Shouldn't there be a Constants.XERCES_FEATURE_PREFIX before each. Like this:
protected static final String INCLUDE_COMMENTS_FEATURE = Constants.XERCES_FEATURE_PREFIX + Constants.INCLUDE_COMMENTS_FEATURE;
protected static final String CREATE_CDATA_NODES_FEATURE = Constants.XERCES_FEATURE_PREFIX + Constants.CREATE_CDATA_NODES_FEATURE;
In the constructor of the org.apache.xerces.jaxp.DocumentBuilderImpl these features are set:
domParser.setFeature(Constants.XERCES_FEATURE_PREFIX +
Constants.INCLUDE_COMMENTS_FEATURE,
!dbf.isIgnoringComments());
domParser.setFeature(Constants.XERCES_FEATURE_PREFIX +
Constants.CREATE_CDATA_NODES_FEATURE,
!dbf.isCoalescing());
This causes a exception that is silently ignored.
Both of those features seem not to be in the documentation (http://xml.apache.org/xerces2-j/features.html).
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org