Tagdiff: a diffing tool for highlighting differences in the tagging...
summary
Command-line tool that diffs text-oriented XML by splitting documents into paragraph-boundary splitting then parsing into typed segments, keeping no schema or validation so even invalid outputs compare. It runs Myers ’86 on many short raw-text sections, then aligns equal sequences and uses recursive enumeration with pruning to align differing sequences under a cost model. Implemented in Java 8 (~5,000 LOC), shows a vertical two-column view with simple symbols, optimized runs medium files in ~5–12s; intended to be open source.
AI-written summary · about
chapters (17)
- 0:00Intro
- 0:31Contents
- 0:59Structure-oriented vs. text-oriented XML documents
- 1:50Use case: algorithmic tagging of
- 2:38Command line tool requirements
- 4:24tagdiff vertical, segmented and typed diffing
- 6:37DeltaXML XML Compare
- 7:45Oxygen XML Editor
- 8:16tagdiff algorithm
- 9:20Algorithm (1) Diffing of the raw text versions
- 10:09Algorithm (1 continued) Optimization of the diffing algorithm
- 11:25XML parsing
- 13:16Segmentation
- 15:17Alignment of equal data
- 17:59Performance (small test corpus)
- 18:46Performance (runtimes)
- 20:00Conclusions
