Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P3
-
Resolution: Not an Issue
-
Affects Version/s: 1.2.0
-
Fix Version/s: None
-
Component/s: xml
-
Labels:
-
Subcomponent:
-
Introduced In Build:1.2.0
-
Introduced In Version:
-
CPU:sparc
-
OS:solaris_8
Description
tag info: xalan-j_2_2_d11, Xerces-J_2_0_0_beta3
There are 2 issues
1. According to latest SAX doc from http://www.saxproject.org/, when external-general-entities should be always true when validating. In the test case, I successfully set to false after I set validating to true.
2. This one I am not quite sure. From the original doc, http://www.megginson.com/SAX/Java/features.html, it has a access field specify that external-general-entities and external-parameter-entites are read-only when parsing. In the latest doc from saxproject.org, it doesn't have access field. So I am not sure whether I can set it at all (ie. when I try to setFeature(external-general-entities), it should throw SAXNotSupportedException)
See attachment to reproduce
There are 2 issues
1. According to latest SAX doc from http://www.saxproject.org/, when external-general-entities should be always true when validating. In the test case, I successfully set to false after I set validating to true.
2. This one I am not quite sure. From the original doc, http://www.megginson.com/SAX/Java/features.html, it has a access field specify that external-general-entities and external-parameter-entites are read-only when parsing. In the latest doc from saxproject.org, it doesn't have access field. So I am not sure whether I can set it at all (ie. when I try to setFeature(external-general-entities), it should throw SAXNotSupportedException)
See attachment to reproduce