Skip to main content

Module diff

Module diff 

Source
Expand description

Diff and Patch algorithms for XML trees.

This module provides functionality to generate diffs between matched trees and to apply those diffs to reconstruct modified versions.

Structs§

BfsIndex
Index that maps nodes to sequential IDs using BFS order.
Diff
Diff generator for matched trees.
DiffOperation
A diff operation with source, destination, and run count.
Patch
Patch application for applying diffs to base trees.

Constants§

DIFF_COPY_TAG
Tag names for diff operations.
DIFF_CPYDST_ATTR
DIFF_CPYRUN_ATTR
DIFF_CPYSRC_ATTR
Attribute names for diff operations.
DIFF_ESC_TAG
DIFF_INSERT_TAG
DIFF_NS
Default namespace for diff tags.
DIFF_ROOTOP_ATTR
DIFF_ROOTOP_INS
Value for root insert operation.
DIFF_ROOT_TAG