[1 of 4] Add or Delete an Element
Add or Delete an Element
In this section we see how changes to elements are resolved. We begiin with some simple examples and then look at how conflicts are handled. Document b (base) is the original, and Document e1 and Document e2 are the edited versions of this. 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 in e2 to add an element to document e2, note it appears in the result.
- click ADD ELEMENT in e1 to add an element to document e1 also, note this also appears in the result.
- click DELETE ELEMENT to delete an element in Document e2, note that if an element is deleted in either document, it is deleted in the result.
- click ADD WITH CONTENT MERGE to add an element in both e1 and e2, but with different content, note the content is merged in the result.
So far it is simple enough. Problems occur when there are conflicts, and DeltaXML Sync Concurrent Edit handles these by providing the conflicting information in warning elements. Some of these are shown below:
- click MODIFY AND DELETE CONFLICT to modify an element in Document e1, but also to delete it in Document e2, note the deletion overrides but the edited data is provided in a warning.
Change any elements in Document e1 or Document e2 to see how the unidelta changes.
DeltaXML Input and Output
| Document b (base) | Document e1 (edit 1) | Document e2 (edit 2) |
|
DeltaXML: Idle
|
||
|
loading...
|
||
1 of
4