There are two main approaches to manage changes in XML documents, change-tracking and diff. Change-tracking tools, which record edit actions while they are performed on the source document, are able to capture the exact editing process. That is much more difficult for diff algorithms, which have to reconstruct it by comparing two different versions. Interestingly, these algorithms process both text-centric and data-centric XML documents the same way. In this paper, we show that more accurate, clear, and human-readable results can be achieved on text-centric resources, by employing specific models and algorithms. We describe and discuss a specialized diff algorithm for such a class of documents. We also compare a Java implementation of the algorithm, named JNDiff, with other general-purpose or data-oriented diff tools, focusing on the quality of their output.

Ciancarini, P., Di Iorio, A., Marchetti, C., Schirinzi, M., Vitali, F. (2016). Bridging the gap between tracking and detecting changes in XML. SOFTWARE-PRACTICE & EXPERIENCE, 46(2), 227-250 [10.1002/spe.2305].

Bridging the gap between tracking and detecting changes in XML

CIANCARINI, PAOLO;DI IORIO, ANGELO;VITALI, FABIO
2016

Abstract

There are two main approaches to manage changes in XML documents, change-tracking and diff. Change-tracking tools, which record edit actions while they are performed on the source document, are able to capture the exact editing process. That is much more difficult for diff algorithms, which have to reconstruct it by comparing two different versions. Interestingly, these algorithms process both text-centric and data-centric XML documents the same way. In this paper, we show that more accurate, clear, and human-readable results can be achieved on text-centric resources, by employing specific models and algorithms. We describe and discuss a specialized diff algorithm for such a class of documents. We also compare a Java implementation of the algorithm, named JNDiff, with other general-purpose or data-oriented diff tools, focusing on the quality of their output.
2016
Ciancarini, P., Di Iorio, A., Marchetti, C., Schirinzi, M., Vitali, F. (2016). Bridging the gap between tracking and detecting changes in XML. SOFTWARE-PRACTICE & EXPERIENCE, 46(2), 227-250 [10.1002/spe.2305].
Ciancarini, Paolo; Di Iorio, Angelo; Marchetti, Carlo; Schirinzi, Michele; Vitali, Fabio
File in questo prodotto:
File Dimensione Formato  
SPE-JNDiff2_paper.pdf

accesso aperto

Tipo: Postprint
Licenza: Licenza per accesso libero gratuito
Dimensione 1.35 MB
Formato Adobe PDF
1.35 MB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11585/529893
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 9
  • ???jsp.display-item.citation.isi??? 4
social impact