|
Project Information
|
Fuego Core XML Diff and Patch ToolThe Fuego Core XML Diff and Patch tool is a fast and memory-efficient general-purpose tool for diffing and patching XML files. The underlying algorithms have been described in T. Lindholm, J. Kangasharju, and S. Tarkoma: Fast and Simple XML Tree Differencing by Sequence Alignment, Proceedings of ACM DocEng 2006. acm.org hiit.fi. The source code for the tool is released under the permissive MIT license News
Installation from SourceAt this point, we only provide source-based installation from the Subversion repository. Sorry. We're looking into providing more straightforward methods, such as a downloadable binary. Please request an alternate method if you find that you'll need one. To install the tool using the subversion repository, proceed as follows.
svn checkout http://fc-xmldiff.googlecode.com/svn/trunk/ fc-xmldiff-read-only cd java/xmldiff ant ant to compile the sources. Diffing XMLThe easiest way to get the diff between the files old.xml and new.xml into diff.xml is to invoke the diff Ant task: ant -Dbase=old.xml -Dnew=new.xml -Ddiff=diff.xml diff Naturally, you may invoke the tool using java directly with the appropriate classpath. For instance, java -Djava.ext.dirs=../contrib/jar:contrib -cp =build/lib/xmldiff.jar fc.xml.diff.Diff old.xml new.xml diff.xml Patching XMLAs for diffing, their is an Ant target for patching. To patch old.xml with diff.xml to get new.xml, you run ant -Dbase=old.xml -Ddiff=diff.xml -Dnew=new.xml patch As in the previous case, direct invocation can also be used. In this case the main class is fc.xml.diff.Patch |