On Wed, Aug 25, 2004 at 09:31:33AM -0400, Dan Weber wrote: > On Mon, Aug 23, 2004 at 05:15:08PM +0200, Alexandre Fayolle wrote: > > XMLdiff is a python tool that figures out the differences between two > > similar XML files, in the same way the diff utility does it for text > > files. It can be used as a python library or as a command line tool. > > What makes xmldiff different from diff. Could you show me some output? Diff is line-based whereas xmldiff manipulates XML constructs such as elements attributes, text nodes. For instance, in XML changing the order of the attributes of an element is not meaningful. xmldiff has an option to ignore whitespace which makes it possible to compare a pretty printed XML document with a 1 line document containing the same elements. Finally xmldiff can produce XUptate instructions to display the differences which allows an XUpdate aware program to patch the original document. If all you XML documents are normalized and pretty printed, using diff will probably be more efficient than xmldiff. See http://www.logilab.org/projects/xmldiff/documentation for example output. -- Alexandre Fayolle LOGILAB, Paris (France). http://www.logilab.com http://www.logilab.fr http://www.logilab.org
Attachment:
signature.asc
Description: Digital signature