My counterpart provided us a sample XML file and we are doing proof of concept whether the data in the file can be imported into a database.
The XML file is shown as follows:
<?xml version="1.0" encoding="UTF-8" ?>
<xmloutfile>
<header>
<TYPE>XLFT</TYPE>
<DN>C001</DN>
</header>
<table>
<row>
<column></column>
<column></column>
<column></column>
<column></column>
<column></column></row>
<row>
<column></column>
<column></column>
<column></column>
<column></column>
<column></column></row>
<row>
<column>ID</column>
<column>Title</column>
<column>Type</column>
<column>Country</column>
<column></column></row>
<row>
<column>12345</column>
<column>ABC</column>
<column>SN</column>
<column>Hong Kong</column>
<column></column></row>
<row>
<column>17777</column>
<column></column>
<column>MO</column>
<column>China</column>
<column></column></row>
<row>
<column></column>
<column></column>
<column></column>
<column></column>
<column></column></row></table></xmloutfile>
What we are interested with is the values of ID, Title, Type, Country (and perhaps a remark)
<column>ID</column>
<column>Title</column>
<column>Type</column>
<column>Country</column>
<column></column></row>
<row>
<column>12345</column>
<column>ABC</column>
<column>SN</column>
<column>Hong Kong</column>
<column></column></row>
just imagine this is a general table, how could I insert those data accordingly?
Eventually I would like to do it using SSIS but at this moment (it would be good if I can do it via SSIS!), but just want to evaluate any feasible approaches. Tks