Loading login details...

[1 of 5] Changes to Elements

Changes to Elements

In this section we see how changes to elements are represented in the unidelta format.

The most important aspect of the unidelta format to understand is the vset attribute. If we denote the three documents as A, B and C then any element that appears in documnt A will have '|A|' in the vset attribute. An element in both A and B will have '|A|' and '|B|' in the vset attribute, and so on. There is one other rule: if the value of the vset attribute for an element is the same as that of its parent element, then it is not shown, because this reduces file size and makes it more readable without loss of information. You can see how this works as follows:

  • click ORIGINAL EXAMPLE to return to the original values, which are the same in all three documents.
  • click ADD ELEMENT to add an element to document C, note the vset for this element will be '|C|'.
  • click DELETE ELEMENT to delete an element from Document C, note the vset for this element will now no longer have a '|C|' in it.

Change any elements in Document B or Document C to see how the unidelta changes.

DeltaXML Input and Output

Document A Document B Document C
DeltaXML: Idle
loading...
1 of 5