[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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

On Wed, Aug 25, 2004 at 09:31:33AM -0400,
 Dan Weber <dan@mirrorlynx.com> 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
< <foobar/>
> <foobar></foobar>
 % xmldiff empty.xml empty2.xml

Here, they are really different.

 % cat full.xml
 % cat full2.xml

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

Reply to: