"alex.loubyansky(a)jboss.com" wrote : Use controls presence. If
use="required" the attribute must appear in the XML.
| Fixed is a value constraint. If the attribute is present and different from the fixed
value the parsing will fail.
|
You sure? My schema parsing is failing when I add unexpected elements (blah) but they pass
if I don't set version.
Even worse, if I set version, then it fails
Caused by: org.xml.sax.SAXException: cvc-complex-type.3.2.2: Attribute 'version'
is not allowed to appear in element 'persistence-unit'
anonymous wrote :
| All this stuff is handled by the underlying xml parser, which is xerces SAX in our
case. Xerces will include fixed and default attributes into org.xml.sax.Attributes only if
schema validation is enabled.
|
| In XB you can do that by unmarshaller.setSchemaValidation(true);
It's for JBoss Metadata's JPA parsing. Do you know the piece of code that set the
unmarshaller?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261878#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...