Try using this feature and let me know how you get on.

http://www.castor.org/sourcegen.html#The-'type'-method

-----Original Message-----
From: Kador, Daniel [mailto:[EMAIL PROTECTED] 
Sent: 03 August 2005 21:18
To: [email protected]
Subject: [castor-user] Castor source generation like Axis

Hi,

I'm using Castor to generate source from an XML schema and then
integrating that with Axis.  My schems are rather large, and they have
the /very/ unfortunate feature of naming many child elements of globals
the same thinig, so I've been forced to write long binding files.  I'd
like to get away from this if possible, and one way I've seen is to take
Axis' method - if you have an XML like (simplified obviously):

<a>
        <b>
                <c type="xs:string"/>
        </b>
        <d>
                <c type="xs:int"/>
        </d>
</a>

Axis generates two classes for element c, one called "abc" and one
called "adc" - i.e., it appends the name of every element's parent to
the front of the element name.  Is there an option to do this with
Castor?

Thanks,
Dan
        

-------------------------------------------------
If you wish to unsubscribe from this list, please 
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------



CODA has a new world-class consolidation package.
Find out more about www.coda.com/ocra <http://www.coda.com/ocra> 


The information in this message is confidential and may be legally privileged. 
It may not be disclosed to, or used by, anyone other than the addressee. If you 
receive this message in error, please advise us immediately.  Internet emails 
are not necessarily secure. CODA does not accept responsibility for changes to 
any email which occur after the email has been sent. Attachments to this email 
may contain software viruses, which could damage your systems. CODA has checked 
the attachments for viruses before sending, but you should virus-check them 
before opening.  


-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to