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