Posted by utuba
on July 18, 2006 at 7:54 AM PDT
I'm trying to use jaxb to generate objects for the following xsd, using bindings defined below
=================== XSD chunk
AdministrativeArea is referenced twice and causes the catch all mapping in the object. When I try and use the binding above, it results in an error:
[ERROR] [ERROR] compiler was unable to honor this property customization. It is attached to a wrong place, or its inconsistent with other bindings.
[ERROR] line 12 of file:/home/utuba/documents/development/iizuka/component/snen-message/src/main/resources/bindings.xjb
[ERROR] [ERROR] (the above customization is attached to the following location in the schema)
[ERROR] line 100 of file:/home/utuba/documents/development/iizuka/component/snen-message/src/main/resources/bs7666-v2-0.xsd
which I guessing is because I'm trying to add an attribute via the bindings which is not valid, i.e. "name". Is there a way of overriding this binding?