What's XMT

Version 7 by Robin Shen
on Feb 18, 2010 04:03.

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

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 an open source 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.