On 6/8/05, h z <[EMAIL PROTECTED]> wrote: > When I build java classes based on existing xsd files, there are always > cyclic inheritence problems. I know this is because both elements and > complextype with the same name. Using castor binding-file is a solution for > this problem, but I donot know how to use it. > Anybody can give me an example?
Using a binding file for this purpose is actually pretty straightforward. There's an example of such a binding here: http://cvs.castor.codehaus.org/viewrep/~raw,r=1.1/castor/castor/src/examples/SourceGenerator/bindingInvoice.xml Notice the comment titled 'avoid name collisions' in the binding file. Below is the XSD against which this binding is applied: http://cvs.castor.codehaus.org/viewrep/~raw,r=1.1/castor/castor/src/examples/SourceGenerator/invoice.xsd Look at this example and ask any questions you may have. Bruce -- perl -e 'print unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*" );' The Castor Project http://www.castor.org/ Apache Geronimo http://geronimo.apache.org/ ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

