Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
2.9.1
-
None
-
None
-
OS : WindowsXP
Description
Hi,
I have a requirement where i need to parse a XML files and validate the file against schema.
But the default value(from schema) for an attribute (Say @attri) is obtained during the parsing.
I tried suppressing the default value by setting the feature as below.
parserConfig.setFeature("http://apache.org/xml/features/validation/schema/element-default",false);
but went in vain .
I analyzed the latest Xerces sourcecode which was available in your website. I found that this feature is not applied for attributes.
the other features set related to the schema validation are
//enable schema validation
parserConfig.setFeature("http://apache.org/xml/features/validation/schema",true);
parserConfig.setFeature("http://xml.org/sax/features/validation",true);
Kindly guide me accordingly.
Thanks and Regards
Aravind.