Hi Joseph,
XMLBeans is not really designed for mapping. You may want to look at
JiBX as an alternative: http://www.jibx.org JiBX is faster than Castor,
and offers more-flexible mapping.
- Dennis
Dennis M. Sosnoski
SOA, Web Services, and XML
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117
Nguyen, Joseph wrote:
I haven’t gotten any response. I searched the user’s archive mail list
and could not find any similar post. Could someone throw some light on
this?
------------------------------------------------------------------------
*From:* Nguyen, Joseph
*Sent:* Tuesday, August 15, 2006 9:41 AM
*To:* '[email protected]'
*Subject:* Schema to existing java type
Hi,
I am quite new to XMLBeans. With Castor, I was able to map schemas to
existing java types via mapping file.
I am trying to achieve the same thing with XMLBeans. So far, I have
been able to config the generated package names and class names via
the .xsdconfig file. But what I really want to do is to transparently
map the schema to my existing java types( I cannot modify these java
types). Currently, I generated XMLBean classes and then mapped these
classes to my existing java classes. I don’t really like this approach
because it increases code maintainability and may introduce bugs. I
read one of the BEA articles suggesting that I need to use Xquery to
handle the mapping. Are there other ways to do this? Could someone
point me to the right direction?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]