Skip to content
🐧 Quick and dirty Java Swing application to find and match XML files based on certain criteria
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
xml-comparison-tool
.gitignore
LICENSE
README.md

README.md

xml-comparison-tool

Quick and dirty Java Swing application to find and match XML files based on certain criteria

What is this?

This is a small tool that reads and parses all available .xml files in two user definable directories (e.g.: sample-tickets/Version_1 V12 and sample-tickets/Version_1 V14) . Then for every XML in sample-tickets/Version_1 V12 it tries to find a matching XML in sample-tickets/Version_1 V14, based on specified criteria.

In the provided examples an XML 263t373.xml in the sample-tickets/Version_1 V12 has a matching XML, 70314.xml, because (XPath expressions):

  • //test:testDocument/test:testObject/test:keyword[test:name = 'IMPORTANT']/test:value in 263t373.xml is equal to //mainDocument/events/mainEvent/object/objectId in 70314.xml and
  • //test:testDocument/test:testObject/test:externalReference in 263t373.xml is equal to //mainDocument/contracts/contract/businessObjectId/versionIdentifier/versionRevision/versionNumber in 70314.xml,

Screenshot

###How to Import into Eclipse

  • File -> Import... -> Existing Maven Projects
  • Click Next
  • Click Browse... for the Root Directory
  • Select and open xml-comparison-tool
  • Click Finish
  • Do a mvn update on xml-comparison-tool

###How to run

  • Run com.lucaslouca.main.TicketAppController.java
  • Test the tool using the sample XML files located under sample-tickets/Version_1 V12 and sample-tickets/Version_1 V14

###How to build

  • Do a mvn clean and then a mvn package
  • Executables should be under target
You can’t perform that action at this time.