Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 2.44 KB

README.md

File metadata and controls

31 lines (23 loc) · 2.44 KB

Codacy Badge Build Status Issue Count Issues Docker Stars Docker Pull License Join the chat at https://gitter.im/capitalone/Hygieia

Compare two XMLs and write differences to an Excel

Run Java code in local

java -jar xml-compare-0.0.1-SNAPSHOT-jar-with-dependencies.jar <Input XML1 path> <Input XML1 path> <Output XLS path>

Eg:

java -jar xml-compare-0.0.1-SNAPSHOT-jar-with-dependencies.jar /home/ravi/Desktop/Projects/xml-compare/src/main/resources/XML1.xml /home/ravi/Desktop/Projects/xml-compare/src/main/resources/XML2.xml /home/ravi/Desktop/Projects/xml-compare/src/main/resources/Results2.xls

Run as Docker image

docker run -p 8084:8080 -v <local path>:/usr/src -t ravikalla/xml-compare /usr/src/<XML1 in local path> /usr/src/<XML2 in local path> /usr/src/<Results.xls in XML1 in local path>

Eg:

docker run -p 8084:8080 -v /home/ravi/Desktop/Projects/xml-compare/src/main/resources:/usr/src -t ravikalla/xml-compare /usr/src/XML1.xml /usr/src/XML2.xml /usr/src/Results.xls

Input files:

https://github.com/ravikalla/screenshots/blob/master/XMLs.png

Result:

https://github.com/ravikalla/screenshots/blob/master/ComparisonResults.png

Javadoc in Github pages: Javadoc