[jdom-interest] Schema aware parsing bug

Thomas Scheffler thomas.scheffler at uni-jena.de
Mon Oct 5 06:31:57 PDT 2015


Hi,

I try to parse a document schema aware. There is an attribute defined as 
fixed="yes". Even if the attribute is not present in the source, it will 
be present in the JDOM Element. This should be the behavior of 
default="yes" if the attribute is not present.
Semantically the fixed='yes' means the default is 'no' if the attribute 
is not present.
This has currently a huge impact we have @invalid='yes' fixed by a 3rd 
party schema.

I use Oracle JAVA 1.8.0_51 and put a simple test to show the error in 
the attachment. Hope that it can be fixed soon...

regards,

Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SchemaBug.java
Type: text/x-java
Size: 535 bytes
Desc: not available
URL: <http://www.jdom.org/pipermail/jdom-interest/attachments/20151005/f860fb87/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: schemabug.xml
Type: text/xml
Size: 153 bytes
Desc: not available
URL: <http://www.jdom.org/pipermail/jdom-interest/attachments/20151005/f860fb87/attachment.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: schemabug.xsd
Type: text/xml
Size: 479 bytes
Desc: not available
URL: <http://www.jdom.org/pipermail/jdom-interest/attachments/20151005/f860fb87/attachment-0001.xml>


More information about the jdom-interest mailing list