Hi,

Fredo Corleone wrote:
I have a schema file that has 10 complexTypes, each of which has an element named group_of_fields. I can specify each of these 10 instances separately in a binding file to map each of these group_of_fields to a unique java class. Is there a way to specify in the binding file to use a combination of the complexTypename and element name to generate the java class?

No, not unless it has been added very recently.


(You probably won't want to do this, but it occurred to me so I'll throw it out there: if you are concerned that your schema will change and you want the binding file to track these changes, you could write an XSL sheet to translate the schema into a binding file. XSL makes it easy to find, say, all the complexTypes with an element named group_of_fields and to output a node in a result document for each. Still, it is certainly more work if this is something you'll only have to do once.)

Also, is there a way to may all unsignedShorts to integer?

No, I don't think so. (It seems like that should be the default behavior. I don't know why it isn't supported yet. If you wanted to add this yourself I don't think it would be too hard -- just have source generator treat xsd:unsignedShort as an xsd:integer with a range limitation.)


Rhett

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev


Reply via email to