[jdom-interest] serialize a Java object in XML file?

Dennis Sosnoski dms at sosnoski.com
Wed May 8 10:43:08 PDT 2002


JAXB EA1 is probably not a good choice - it's basically an orphan 
technology at this point, since Sun has announced that the architecture 
of the next EA will basically abandon Adelard. The new direction will be 
much more like Castor so you're probably better off using that for now.

Project Adelard had some very cool ideas, including using a pull parser 
in generated code for automatic DTD-based validation as the document was 
constructed. This allowed them to build the marshalling and 
unmarshalling code directly into the classes, so variables didn't need 
to be public (or have public accessors).

Sun said they had too many problems trying to extend this approach to 
support Schema, so they changed to an external binding library that 
takes a more conventional approach to working with "bean-like" objects. 
I wish they'd release Adelard as unsupported open source so users can 
build upon what they've got working, but it seems unlikely that they 
will. I imagine they'll at least try to make the migration to the new 
code as easy as possible.

  - Dennis

Shaun Smith wrote:

>Take a look at Sun's 'Project Adelard', or Java Architecture for XML
>Binding.
>
>http://java.sun.com/xml/jaxb/index.html
>
>This is still early access, but basically works.  Otherwise, you could
>override
>the externalization mechanism, or use reflection.
>
>Additionally, you could try CASTOR, not sure if it can do what you need
>though.
>
>
>>Hi,
>>
>>it is possible to serialize a Java object in XML file?
>>
>>Thanks
>>
>_______________________________________________
>To control your jdom-interest membership:
>http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
>





More information about the jdom-interest mailing list