Re: [OT] Lightweight Java-XML serialization frameworks
Matt Ho <[email protected]> Tue, 27 Jan 2004 17:53:28 -0800
| Newsgroups | gmane.comp.java.open-symphony.devel |
|---|---|
| Message-ID | <[email protected]> |
J. Matthew Pryor wrote: > I am trying to find a lightweight Java-XML serialization framework. I > thought there was something in OSCore but I don't think XMLUtils is exactly > what I want. > > Does anyone have an opinion of things like xstream, betwixt or anything else > (JAXB type stuff, castor, hibernate - perhaps a bit on the heavy side ?) > > Basically it is for reading & writing configuration data that one on hand > will be used & modified by a Java UI but also will be sent to a device that > can handle the XML and interpret it. > > It would be nice if the generated XML was somewhat human readable (well to > the extent that any XML is, but I think you know what I mean) Try XmlBeans from the apache group. This was originally a BEA project, but was donated to the OSS community. It's extremely easy to set up and use. It works in much the same way Castor does. Define an XML schema and it'll marshall and unmarshall that schema into java objects. http://xml.apache.org/xmlbeans/ M ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn