XML data compression issue with infinite reuse. Finally solved using C# winforms app. Originally wrote in Java then C. NewtonSoft JsonConvert and SHA256 made it easy to hash the nodes.