[3 of 6] Add, Delete or Modify an attribute
Add, Delete or Modify an attribute
In this section we see how changes to attributes are resolved. We begin 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 ATTRIBUTE in e2 to add an attribute to e2, note it appears in the result.
- click ADD ATTRIBUTE in e1 to add an attribute to e1, note it appears in the result.
- click DELETE ATTRIBUTE to delete an attribue in e2, note that when an attribute is deleted in either document, it is deleted in the result.
Problems occur when there are conflicts, and DeltaXML Sync Concurrent Edit handles these by providing the conflicting information in warnings. Some of these are shown below:
- click MODIFY AND DELETE CONFLICT to modify an attribute in e1 but delete it in e2, note that when an attribute is deleted in one document, but is modified in the other, then the deletion overrides but the edited data is provided in a warning.
- click EDIT CONFLICT to edit an attribute in both e1 and e2, note that when an attribute is modified in both e1 and e2, the e2 edit is taken but a warning is provided.
- click ADD WITH CONTENT CONFLICT to add the same attribute in both e1 and e2 but with different values, note that when an attribute is added in both e1 and e2, but with different content, then the content from e2 will be used and a warning given with the value in e1.
Change any attributes in Document e1 or Document e2 to see how the concurrent edit result changes.
DeltaXML Input and Output
| Document b (base) | Document e1 (edit 1) | Document e2 (edit 2) |
|
DeltaXML: Idle
|
||
|
loading...
|
||
3 of
6