[Home] [By Thread] [By Date] [Recent Entries]

  • From: Hermann Stamm-Wilbrandt <STAMMW@d...>
  • To: xml-dev List <xml-dev@l...>
  • Date: Wed, 3 Feb 2010 14:49:03 +0100


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@a...>          
             PM                                                         cc 
                                       xml-dev List                        
                                       <xml-dev@l...>             
                                                                   Subject 
                                       Re:  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@l...
subscribe: xml-dev-subscribe@l...
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]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member