Hi Folks, There exists a proprietary data format called Format1.
A smart group of people created a non-proprietary data format called Format2. It's used to store the same kinds of data as Format1. Of course, Format2 uses different fields and structures. I defined a mapping from Format1 to Format2. I want to know if the Format1 --> Format2 mapping is correct. Perhaps DFDL can help! Here's my idea: - Create a DFDL schema for Format1. - Create a DFDL schema for Format2. - Design the DFDL schemas to produce the same XML. - To ascertain the correctness of the Format1 --> Format2 mapping do this: - Use the Format1 DFDL schema to parse a Format1 document to XML. - Use the Format2 DFDL schema to parse a Format2 document to XML. - Compare the XML's: - If they are identical, then the mapping is correct. - If they are within a certain tolerance, then the mapping is correct. E.g. of an acceptable tolerance: the Format2 XML does omits an optional element. - Otherwise the mapping is not correct. Am I thinking clearly about this problem (ascertaining the correctness of the Format1 --> Format2 mapping)? Is the idea of using DFDL to solve this problem logical? What are the flaws in my thinking? /Roger