You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,16 @@
1
1
# XML Diff/Merge Utilities
2
2
3
3
## Overview
4
+
The utilities find the difference between two XML files and support merging a baseline with a difference file.
4
5
5
-
The utilities work on any XML files; they are not XML-schema aware.
6
+
The motivation is that ordinary line difference programs are not suitable for XML. In XML, order of attributes is always insignificant while an ordinary diff program would show changed order as a difference. In XML, element order is significant for a sequence but not for other uses.
7
+
The utilities work on any XML files; they are not XML-schema aware. Element order is handled by a switch; it can either be considered significant or insignificant.
6
8
7
9
### XML Patch Operations
8
10
These utilities make use of a difference format conformant to standard "An Extensible Markup Language (XML) Patch Operations Framework Utilizing XML Path Language (XPath) Selectors", [IETF RFC 5261](https://tools.ietf.org/html/rfc5261). Another benefit of these utilities, aside from editing Orchestra files, is that they can be used for HTTP PATCH operations with XML payloads.
9
11
12
+
The path format has no way to show moves. If element order is considered, then a move will be displayed as an add and remove.
13
+
10
14
## Difference
11
15
12
16
The XmlDiff utility compares two XML files and generates a third file that represents their differences in RFC 5261 format. Differences are encoded as additions, replacements, or removals of XML elements and attributes.
@@ -26,4 +30,19 @@ To run the merge utility, run this command line:
0 commit comments