[5 of 5] Using Keys to control alignment
Using Keys to control alignment
In the sample XML below, the XML has been edited to:
- add a new
<p>element and - delete a
<p>element
<p> element, which is reasonable though in this case not quite accurate. However, it may be important to track this as a deletion
and insertion, and this can be done.
- click ORIGINAL EXAMPLE to return to the original values, without keys.
- click ADD KEYS to add keys to each
<p>element, note with these keys the paragraphs are always aligned correctly
Keys are a very powerful feature when you are processing XML containing structured text, for example legal documents, or data.
You can use any string value for a key, e.g. the value of an existing ID attribute, using the deltaxml:key attribute. Keys can be generated as you generate the XML document or added by processing the document before comparison.
You can delete the keys afterwards if you no longer need them.
Notice that the deltaxml:key attribute remains as an attribute in the unidelta, even in the expanded unidelta. This is because DeltaXML Sync recognises
it as a special attribute.
Configuration Options
Standard unidelta (uncheck to see expanded form)
DeltaXML Input and Output
| Document A | Document B | Document C |
|
DeltaXML: Idle
|
||
|
loading...
|
||
5 of
5