Loading login details...

[3 of 5] Changes to Attributes

Changes to Attributes

In this section we see how changes to attributes are represented in the unidelta format. All the attribute values are preserved in the unidelta format.

Attribute values are preserved in a similar way to changes to text, using the vset attribute. The changed values are contained in a new dxu:attributes element which contains elements with names corresponding to the original attribute names. 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, note that it appears as normal in the unidelta.
  • click CHANGE ATTRIBUTE IN C to change an attribute in document C, note the attribute is moved into the dxu:attributes element with the different values preserved as text in dxu:PCDATA elements.
  • click CHANGE ATTRIBUTE IN B to change the attribute in document B as well, note a new value appears in the unidelta.

Change any attributes 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...
3 of 5