Hi Pete, It's ok to write to me directly since there is no current documentation online (and available) for the moment. I planned to write some as soon as I get some free time (around Christmas). You should look at the example in /src/etc/examples/SourceGenerator in the Castor CVS. It contains a basic binding file (bindingInvoice.xml) A binding file is merely an XML file that is conform to the binding.xsd (that will be published online). You can pass it from the command line (-binding) or from the API (SourceGenerator#setBinding). As for your last point, Castor will always produce Castor that is conform to your XML Schema. Thus even if you have one <element> that maps to Element1 and one <element> that maps to Element2, the XML won't know it...all you'll see is <element>
Arnaud > -----Original Message----- > From: Pete Thomas [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 05, 2002 10:35 AM > To: '[EMAIL PROTECTED]' > Subject: Binding File > Importance: High > > Arnaud, > > Apologies for emailing you direct but can you give me instructions on how to > set up a Castor binding file for SourceGen to resolve Duplicate Element > Names in an XSD. > > - Where do I put the binding file > - What name do I give it > - How does SourceGen pick the binding file up i.e how do I pass it to > SourceGen > - If I bind a duplicate Element <REQUEST> to two unique classes e.g REQUEST1 > and REQUEST2, if I then marshal() back to XML will it convert back to two > <REQUEST> elements (I hope so). > > many thanks > Pete > This transmission is confidential and intended solely for the person or > organisation to whom it is addressed. It may contain privileged and > confidential information. If you are not the intended recipient, you should > not copy, distribute or take any action in reliance on it. If you have > received this transmission in error, please notify the sender immediately. > Any opinions or advice contained in this e-mail are those of the individual > sender except where they are stated to be the views of RDF Group or EMS plc. > All messages passing through this gateway are virus scanned. ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
