[jboss-dev-forums] [Design of JBossXB] - Re: JBossXB does not assign schema defined attribute default

alex.loubyansky@jboss.com do-not-reply at jboss.com
Wed Jul 1 04:46:49 EDT 2009


The problem comes from the XML parser. Since binding is based on Java annotations, we don't parse the XSD and don't know anything about it, even whether it exists.

So, in this case, XML parser (e.g. xerces in our case) should include default attribute values and make them available through SAX API.

For that, XSD schema must be resolvable by the XML parser. Which means EntityResolver should know the schema location. And also validation should be enabled.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241081#4241081

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241081



More information about the jboss-dev-forums mailing list