I am currently using SSIS on a project where I need to verify the correct XML file structure. In particular, I have to check that there is no missing tag in the XML file and if so, I have to reassemble this line without tag. I'll give you an example to better understand.
<?xml version="1.0"?>
<catalog>
<DATA>0000000061E82D821590010000409525CD</DATA>
<DATA>0000000061E82D8C163001000140AD0DF6</DATA>
<DATA>0000000061E82D9616E301000240776CAB</DATA>
<DATA> 0000000061E82DA0178001000340C56B6</DATA>
<DATA>0000000061E82DAA188001000440C0C7CB</DATA>
0000000061E82DDAEA4001000540BB9A276
</catalog>
For example in the above XML there is a <DATA>
tag missing. I have no influence on the creation of the XML.
How could I notice that a <DATA>
tag is missing (the number of data lines is not fixed), and subsequently retrieve that line where there is no tag ?
For example in the above xml there is a <DATA>
tag missing. I have no influence on the creation of the XML.
The solution can be a suite of SSIS components or a c# script.