XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Fw: [xml-dev] Open source XML instance diff tool


If already working with "tidy" this little shell script might be useful:

#!/bin/bash
tidy -q -xml $1 >/tmp/tmp.1.xml
tidy -q -xml $2 >/tmp/tmp.2.xml
diff /tmp/tmp.1.xml /tmp/tmp.2.xml



Mit besten Gruessen / Best wishes,

Hermann Stamm-Wilbrandt
Developer, XML Compiler, L3
WebSphere DataPower SOA Appliances
----------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
----- Forwarded by Hermann Stamm-Wilbrandt/Germany/IBM on 02/03/2010 02:48
PM -----
                                                                           
             Farrukh Najmi                                                 
             <farrukh@wellflee                                             
             tsoftware.com>                                             To 
                                       Rick Jelliffe                       
             02/02/2010 06:13          <rjelliffe@allette.com.au>          
             PM                                                         cc 
                                       xml-dev List                        
                                       <xml-dev@lists.xml.org>             
                                                                   Subject 
                                       Re: [xml-dev] Open source XML       
                                       instance diff tool                  
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





For my needs the xmlunit tool may actually be the best as it gives an
XPATH for each difference found:

<http://xmlunit.sourceforge.net/>

Thanks again for the help.

Farrukh Najmi wrote:
>
> The diffx project definitely look better than others [1] I have seen.
> Thanks Rick!
>
> [1] https://diffxml.dev.java.net/
>
> Rick Jelliffe wrote:
>> DiffX ?
>>
>>    http://sourceforge.net/projects/diffx/
>>
>> Probably better for smaller than larger documents.
>>
>> Cheers
>> Rick Jelliffe
>>
>> Farrukh Najmi wrote:
>>> Dear colleagues,
>>>
>>> I am looking for a decent open source diff tool for XML instance
>>> documents. I realize this has come up before but I did not find
>>> anything that I could use in the archives.
>>>
>>> The ideal tool would have:
>>>
>>>     * Java library
>>>     * A liberal open source license that allows royalty-free
>>>       redistribution
>>>     * Active development
>>>     * Ability to compare two XML instance documents and give a set of
>>>       differences where each difference identifies the XPATH to
>>>       element or attribute that is different
>>>     * Namespace awareness
>>>
>
>


--
Regards,
Farrukh

Web: http://www.wellfleetsoftware.com



_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS