What's XMT

Version 5 by Robin Shen
on Feb 08, 2010 13:34.


compared with
Current by Robin Shen
on Feb 18, 2010 05:05.


 
Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 1 changes. View first change.

  XMT (XStream Migration Tool) is a simple library to migrate [XStream|http://xstream.codehaus.org/] serialized XML when the associated Java class evolves. XStream is a popular library to serialize Java object to XML and back again, and XMT enables a smooth migration of this XML with the help of [dom4j|http://dom4j.sourceforge.net/] when you change class definition of the Java object.
  XStream is a popular tool to serialize Java objects to XML and back again. However in a production environment, user needs to deal with migration of serialized XML if fields of associated Java classes have been changed. XMT (XStream Migration Tool) makes this task much easier with the help of Java reflection and dom4j: when you change fields of the class, you just provide a migration method in your class to handle migration of dom4j document (DOM representation of serialized XML) from previous version to current version, and XMT will take care of the rest.