setFeature("http://apache.org/xml/features/validation/schema/element-default",false);
- not working for attributes
------------------------------------------------------------------------------------------------------------------
Key: XERCESJ-1310
URL: https://issues.apache.org/jira/browse/XERCESJ-1310
Project: Xerces2-J
Issue Type: Bug
Components: SAX
Affects Versions: 2.9.1
Environment: OS : WindowsXP
Reporter: Aravind Arasu
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]