Loading login details...

[4 of 9] Add, Delete or Modify an Attribute

Add, Delete or Modify an Attribute

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

  • click ORIGINAL to return to the original values. Here you can see an unchanged attribute which appears as a normal XML attribute in the full context delta, and does not appear at all in the changes-only delta (uncheck the box 'Full context' to see this).
  • click ADD ATTRIBUTE to see that when an attribute is added, a deltaxml:new-attributes appears in the delta format.
  • click DELETE ATTRIBUTE to see that when an attribute is deleted, a deltaxml:old-attributes appears in the delta format.
  • click MODIFY ATTRIBUTE to see that when an attribute is modified, the original value is preserved in deltaxml:old-attributes, and the new value is preserved in deltaxml:new-attributes.
The reason that attributes are used to show changes to attributes is that this preserves the element structure of the original documents. If you need some combination of old and new values in a result, then you can process the values of these delta attributes to generate whatever you need in the result. No attribute information is lost from the old and new documents, all values are preserved in the delta format.

If an attribute value contains a double quote, then a single quote will be used as a delimiter. Other delimiters are used if both single and double quotes are present in the value.

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

Configuration Options

Full Context

DeltaXML Input and Output

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