Bug#267598: ITP: xmldiff -- display the differences between XML documents

2004-08-25 Thread Stephane Bortzmeyer
On Wed, Aug 25, 2004 at 09:31:33AM -0400,
 Dan Weber <[EMAIL PROTECTED]> wrote 
 a message of 33 lines which said:

> What makes xmldiff different from diff.

diff operates at the text level. It knows nothing about the syntax.

xmldiff operates at the XML tree level. It displays only significant
differences, not syntaxic variants.

>  Could you show me some output?

Here, two files are identical, XML-speaking:

 % cat empty.xml 

 % cat empty2.xml

 % diff empty.xml empty2.xml
1c1
< 
---
> 
 % xmldiff empty.xml empty2.xml
 % 

Here, they are really different.

 % cat full.xml

Me

 % cat full2.xml

Me
 % xmldiff full.xml full2.xml
[remove, /full[1]/foobar[1]]
 % 



Bug#267598: ITP: xmldiff -- display the differences between XML documents

2004-08-25 Thread Alexandre
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


signature.asc
Description: Digital signature


Bug#267598: ITP: xmldiff -- display the differences between XML documents

2004-08-25 Thread Dan Weber
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?

Dan


signature.asc
Description: Digital signature


Bug#267598: ITP: xmldiff -- display the differences between XML documents

2004-08-23 Thread Alexandre Fayolle
Package: wnpp
Severity: wishlist

* Package name: xmldiff
  Version : 0.6.4
  Upstream Author : Sylvain Thénault <[EMAIL PROTECTED]>
* URL : http://www.logilab.org/projects/xmldiff
* License : GPL
  Description : display the differences between XML documents

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.
It can work either with XML files or DOM trees.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.26-1-686
Locale: LANG=C, LC_CTYPE=C (ignored: LC_ALL set to fr_FR)