The Master XML contains all workflows that is splited into several small XML. The master XML contains alot of InContract, OutContract, Destination and Client. Each Item XML contains only 1 InContract or OutContract, 1 Destination and 1 Client. The Master XML is created central in my organization. The small XML are created and distributed from several places. Each small XML is a describes a part of the Master XML.
The small XML are organized in directories where the first level describes the destination, the next level is InContract or OutContract. The small XML is in the In-/Out-Contract directory.
The Master XML could be anywhere. Most likely in the root
## Deliverables
XML Compare
The Master XML contains all workflows that is splited into several small XML. The master XML contains alot of InContract, OutContract, Destination and Client. Each Item XML contains only 1 InContract or OutContract, 1 Destination and 1 Client. The Master XML is created central in my organization. The small XML are created and distributed from several places. Each small XML is a describes a part of the Master XML.
The small XML are organized in directories where the first level describes the destination, the next level is InContract or OutContract. The small XML is in the In-/Out-Contract directory.
The Master XML could be anywhere. Most likely in the root
1. The user should be able to point out a Master XML
2. The user should be able to point out a directory or a Item XML. If the user points out a directory all xml in that directory and sub directorys should be compared against the Master XML.
Comparison:
Both the Master and the item XML have the same structure.
They both begins/ends with
<?xml version="1.0" encoding="ISO-8859-1"?>
<xTradeObjects>
<xTradeVersion>4.1</xTradeVersion>
...
...
</xTradeObjects>
The "body" of the XML contains
<InContract name="FAKTURAVAXEL_PRIO_FAKTURAVAXEL">
<OutContract name="FAKTURAVAXEL_PRIO_INFAKTURA">
<Destination name="dacrd660">
<Client name="FAKTURAVAXEL_PRIO_FAKTURAVAXEL">
In tne Item XML there is only one In- or Out-Contract. The contract in the Item XML must be found in the Master XML. All tags within the contract in the item contract must be equal to the tags in the Master XML.
At the end of the Item XML contract there is 2 tags.
<RelationToDestination>camamq</RelationToDestination>
In the Item XML there must be a <Destination> tag correlated to the value in the <RelationToDestination> tag. The destination tag must also be found in the master XML.
All the subtags within Item XML Destination tag must be equal to the Destination subtags in the Master XML.
<RelationToClient>VDLIV48596_PRIO_ARBETSORDER</RelationToClient>
Almost the same but the tag to serach for is <Client>. In the Item XML there must be a <Client> tag correlated to the value in the <RelationToClient> tag. The Client tag must also be found in the master XML.
All the subtags within Item XML Client tag must be equal to the Client subtags in the Master XML.
Report all differences in the compare window.
InContract FAKTURAVAXEL_PRIO_FAKTURAVAXEL do not match
Item XML InContract
ItemXML <TAG> value differs from MasterXML <TAG> value
...
ItemXML <TAG> value differs from MasterXML <TAG> value
Item XML OutContract
ItemXML <TAG> value differs from MasterXML <TAG> value
...
ItemXML <TAG> value differs from MasterXML <TAG> value
If all Item XML match Master XML just write
All Item XML match the Master XML