Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Abandoned
-
5.2, 5.0.18
-
None
-
Sun JDK 1.5
Description
Consider testing for org.xml.sax.ext.Attributes2 and use Attributes2.isSpecified(int) to check if the attribute is really specified or just a default declaration.
With this you can e.g. test if <a shape="rect" > is really set. Test for "http://xml.org/sax/features/use-attributes2" or just use "instanceof":
if (attributes instanceof Attributes2) {
if (( (Attributes2)attributes ).isSpecified)
}