Oxygen XML Author Eclipse plugin includes a file comparison tool that provides a mechanism for comparing two XML-related resources, as well as the possibility for a three-way comparison. You can compare files in a visual comparison mode or in a text-based comparison mode. The supported XML file types include XSL, XSD, DTD, XProc, WSDL, RNG, and XSpec, as well as HTML documents.
The visual Author file comparison mode makes it easier to see how the compared changes will look in the final output. It includes unique features such as actions to control the tags display mode, the ability to do second-level comparisons, and it presents differences made with Change Tracking enabled.
If there is a CSS associated with the documents (either directly in the document or in the
framework definition), the visual comparison tool is presented automatically when you
compare XML files in Oxygen XML Author Eclipse plugin. If the comparison is automatically started in
the text-based mode, you can switch to the visual comparison mode by clicking the
Switch to
Author Mode toolbar button.
You can compare versions in the Workbench with versions in the repository, or with the local edit history. You can also compare three files if a common ancestor exists. The two editors are constantly synchronized and the differences are refreshed when you save the modified document.
Oxygen XML Author Eclipse plugin also includes a text-based comparison mode. When in the
Author comparison mode, you can switch to the text-based mode by
clicking the
Switch
to Text Mode toolbar button.
Most of the options, features, and actions that are available for the visual-based comparison mode are also available in the Text comparison mode, although more algorithms are available in Text mode.
Switch to
Text Mode (Not available in Author comparison mode)
Switch to Author Mode (Only available in Text mode)
Tags Display
Mode (Only available in Author comparison mode)
Full Tags with Attributes,
Full Tags,
Block
Tags,
Block Tags without Element Names,
Inline Tags,
Partial Tags, or
No Tags.
Diff
Options
Algorithm Drop-down menu (Only available in Text mode)
Swap Left
and Right View
Copy All
Non-Conflicting Changes from Left to Right
Copy All
Non-Conflicting Changes from Right to Left
Copy
Current Change from Left to Right
Copy
Current Change from Right to Left
Next
Difference
Previous Difference
Next
Change
Previous ChangeThe following contextual menu actions are available in each editor pane:
Undo
Redo
Cut
Copy
Paste
Find/Replace
Algorithm Drop-down menu that is available on the
toolbar. The following diff algorithms are available (depending on whether it is a two-way
or three-way comparison): In Author mode, only the Auto,
XML Fast, and XML Accurate algorithms are
available and you can select them from the Diff preferences page (easily accessible by clicking the
Diff
Options toolbar button).
The comparison tool automatically performs a second-level comparison for the XML Fast and XML Accurate algorithms. After the first comparison is finished, the second-level comparisons is processed on text nodes using a word-level comparison, meaning that it looks for identical words. This second-level comparison makes it easier to spot precise differences and you can merge or reject the precise modifications.
For more information about the visual editing support for JSON, watch our video demonstration: