Skip to content

Commit c8deb05

Browse files
committed
refactor(XMLDiff): add --ignore-diff-in-attribute option to ignore differences in the specified attribute
docs(XMLDiff): reflect improvement in documentation
1 parent 890528a commit c8deb05

File tree

2 files changed

+61
-49
lines changed

2 files changed

+61
-49
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ If the `diff.xsd` file if it located in the "current" folder it will be used aut
2323
There is a command line help for the `XMLDiff` tool:
2424

2525
```shell
26-
XMLDiff 0.2.24
26+
XMLDiff 0.2.27
2727
Developed by Chem O`Dun
2828
2929
-o, --original_xml Required. Path to the original XML file or directory.
@@ -42,6 +42,8 @@ Developed by Chem O`Dun
4242
4343
--use-all-attributes (Default: false) Use all attributes in XPath.
4444
45+
--ignore-diff-in-attribute Ignore differences in the specified attribute when comparing elements.
46+
4547
--help Display this help screen.
4648
4749
--version Display version information.
@@ -130,6 +132,10 @@ Example:
130132
</diff>
131133
```
132134
135+
##### Ignore differences in the specified attribute
136+
137+
The `--ignore-diff-in-attribute` option will ignore differences in the specified attribute when comparing elements. It is useful when you want to ignore differences in attributes like `version`, `comment`, etc.
138+
133139
#### Defining the position generation for the diff by in-line comment
134140
135141
The `pos` attribute of the `add` usually is set to `after`, taking in account the common logic of how the program is working. But in some cases, you may want to have a diff file with the `pos` attribute set to `before`. Mostly it is useful when it working in conjunction with the vscode - [XMLDiff with VSCode](XMLDIffWithVSCode.md).
@@ -275,6 +281,11 @@ Please be aware - each release archive has an appropriate link to the [VirusTota
275281
276282
## Changelog
277283
284+
### [0.2.27] - 2025-08-28
285+
286+
- Improved:
287+
- XMLDiff: added --ignore-diff-in-attribute option to ignore differences in the specified attribute when comparing elements. It is useful when you want to ignore differences in attribute `version` in X4 script files.
288+
278289
### [0.2.26] - 2025-06-16
279290
280291
- Improved:

0 commit comments

Comments
 (0)