Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2008

Tip: Looking for answers? Try searching our database.

xml data binding using castor

Thread view: 
vysh - 04 Jan 2008 11:50 GMT
Hi all,
        I am using Castor framework for xml parsing.I am generating
the  java source code  from my schema file using the castor
SourceCodeGenerator .Now I m trying to unmarshall the xml file and
populate my beans.but,I am stuck up!!!.
       My schema file has complex types,sequences other than the
normal elements.So when I am generating my source these complex types
are created as normal and abstract classes.
       So in my mapping file I am not able to map these classes to my
elements as there are no elements of that type.Because of this my
unMarshall is not able to retrive the elements inside these classes.If
you do understand my issue, please reply me.

Waiting for your reply,

Thanks,
Vaisakh Unniskrishnan.
David Sharp - 04 Jan 2008 19:06 GMT
> Hi all,
>          I am using Castor framework for xml parsing.I am generating
[quoted text clipped - 8 lines]
> unMarshall is not able to retrive the elements inside these classes.If
> you do understand my issue, please reply me.

I did a little bit of data binding with castor, and it was ok, but I
much prefer to use JAXB.  Any reason you can't switch to JAXB?

Dave


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.