Comparing hierarchically-structured documents
Abstract
Described is a method and system for comparing two XML documents, usually represented as two logical dependency trees, and providing their differences as a set of tree operations. The set of tree operations may be used to transform one tree to the other. A first phase constructs an XML tree of nodes for each file, and a second, link tree construction phase builds a tree of link objects that relate nodes in the left tree to nodes in the right tree. Construction of the link tree generally operates by mapping equal subtrees in the left and right trees to each other, linking mapped subtrees to each other, removing any crossing links, linking groups, and filling gaps in the link tree. A third output phase uses the link tree to write an output file, such as comprising an XML document of change (e.g., insert and delete) operations.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 9 · Forward citations: 47.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In a computer system, a method, comprising: accessing a first file of hierarchically structured data; generating, from the first file, a first tree structure, the first tree structure having at least one first group of data that may be referenced as a group, the at least one first group being less than the whole first tree; accessing a second file of hierarchically structured data; generating, from the second file, a second tree structure, the second tree structure having at least second one group of data that may be referenced as a group, the at least one second group being less than the whol
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 47 total)
References Cited — Backward Prior Art (9)
Non-Patent Literature (3)
- Chakrabarti, K and S. Mehrotra, "The Hybrid Tree: an index structure for high dimensional featurespaces", Mar. 23-26, 2999, pp. 440-447.
- Sleator, Daniel and Robert Tarjan, "A data structure for dynamic trees", Annual ACM Symposium of Theory of Computing, ACM Press, 1981,pp. 114-122.
- Zhang et al., "Simple Fast Algorithms for the Editing Distance Between Trees and Related Problems" 1989 Society for Industrial and Applied Mathematics, vol. 18, No. 6, pp. 1245-1262, Dec. 1989.