Duncaroos wrote: ↑Tue, 25. Feb 25, 15:59
I think I am understanding more.
If output XML is a directory
If the output XML is a directory, the tool will create a new XML file with the same name as the original XML file in the output directory.
For example, if the original XML file is
vanilla.xml and the output directory is
output, the tool will create a new XML file
output/vanilla.xml.
How to apply a tools to a directories
Applying XMLDiff to directories
You can apply the XMLDiff tool to directories. In this case, the tool will traverse the directory structure and create diff files for XML files with identical names and relative paths. The process is as follows:
- If all input parameters are directories, the tool will create diff files for all XML files in the directories.
- The tool will recursively go through the directory structure, using modified files as a "keys" for it
- For each changed file, the corresponding original XML file in the original directory with the same relative path will be checked.
- If the original XML file is not found, the operation will be skipped.
- If the original XML file is found, the diff file will be created in the output directory with the same relative path.
Example:
Code: Select all
XMLDiff.exe -o vanilla_dir -m modified_dir -d diff_dir
Applying XMLPatch to directories
You can apply the XMLPatch tool to directories. In this case, the tool will traverse the directory structure and apply the patch to XML files with identical names and relative paths. The process is as follows:
- If all input parameters are directories, the tool will apply the patch to all XML files in the directories.
- The tool will recursively go through the directory structure, using diff files as a "keys" for it
- For each diff file, the corresponding original XML file in the original directory with the same relative path will be checked.
- If the original XML file is not found, the operation will be skipped.
- If the original XML file is found, the diff file will be patched with the original XML file, and a new patched XML file will be created in the output directory with the same relative path.
Example:
Code: Select all
XMLPatch.exe -o vanilla_dir -d diff_dir -u modified_dir