Loading login details...

[3 of 9] Add, Delete or Modify an Element

Add, Delete or Modify an Element

In this section we see how changes to elements are represented in the delta format. You can see how this works as follows:

  • click ORIGINAL to return to the original values.
  • click ADD ELEMENT to see that when an element is added, a deltaxml:deltaV2="B" appears on that element in the delta format.
  • click DELETE ELEMENT to see that when an element is deleted, a deltaxml:deltaV2="A" appears on that element in the delta format.
  • Notice that when an element is modified, a deltaxml:deltaV2="A!=B" appears in the delta format. Notice how element p1 is flagged as modified when an element within it is added or deleted.
You can see that the deltaxml:deltaV2 attribute indicates a change to an element, and for an added or deleted element the rest of the element and its children appear as in the original document. If an element is added, then its parent will be modified so you see the deltaxml:delta="A!=B" attribute on its parent. This makes it easy to know if there are changes somewhere in an element.

Change any elements in Document 2 to see how the delta changes.

Configuration Options

Full Context

DeltaXML Input and Output

Document 1 Document 2
DeltaXML: Idle
loading...
3 of 9