Get Moving with Java-XML Serialization Using XStream
As with most things, when it comes to serializing Java to XML and back, there is more than one way to skin the cat. In certain circumstances, Java-XML serialization can offer significant advantages over binding technologies such as JAXB and ultimately can save you development time. Learn the benefits and costs of Java-XML serialization using the excellent XStream library.
by Doug Tillman
December 2, 2005
he XML format has become a de facto standard in contemporary IT work. Amongst all the XML-related technology advances, Java-XML binding and serialization has especially been of use to me because much of the work I do involves back-end business components. Java-XML binding and serialization technology has saved me significant development time and effortand I know I'm not alone. If utilized judiciously, these technologies not only save time but they will make your system more flexible and responsive to change.
In this article I'll briefly discuss how Java-XML serialization works and show you how to take advantage of this technology to reduce your effort in processing XML. The resources section (see left column) lists various Java-XML binding technologies, but I'll be focusing on the open source XStream Java serialization library in this article and the accompanying code sample. You can download the free XStream library and the code for this article from the links in the resources section.
It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com. Already a member?
To become a member of DevX.com create your Member Profile by completing the form below. Membership is free!