Actually, there is an easier approach:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JAXBIntroductions
This project allows you to use an external XML file to configure JAXB. Not
every annotation is supported yet, but it may work for you.
Brennan Spies
Sr. Programmer Analyst
Shared Application Services
-----Original Message-----
From: Kenny MacLeod [mailto:kennym_at_kizoom.com]
Sent: Tuesday, November 20, 2007 3:03 AM
To: users_at_jaxb.dev.java.net
Subject: Re: how to marshal classes that cannot be annotated?
you could, in principle, write your own set of classes that extend
and/or contain those existing classes, and you could then annotate those
subclasses/wrappers.
Not pretty, but might be the most practical approach.
Don Walling, Jr. wrote:
> Sorry if this is a total newbie question, but I've not found a
> definitive answer. I have a heirarchy of classes that are basically
> JavaBeans, but I do not own the source and cannot annotate them for
> JAXB. Is there still a way that I can use JAXB to marshal them to XML?
> Can someone point me to the sample or FAQ on how to get started with this?
> Thanks,
> Don
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net