私は通常のExcelテーブルをxmlに変換することに精通しています。これはほとんどフラットな構造です。私の問題は、私のテーブルにすべてのテーブル列にまたがるヘッダーがあることです。スキーマをセルにマップできません。月は、新しい行としてコストノードに自動的に追加されます。例を参照してください。
原価販売利益
1月1001505020
40202
月
1001505020
40203
月
1001505020
40
20
これは私が探しているXMLの結果です
<Sales>
<Period>
<Month>January</Month>
<Cost>100</Cost>
<Sell>150</Sell>
<Profit>50</Profit>
</Period>
<Period>
<Month>February</Month>
<Cost>100</Cost>
<Sell>150</Sell>
<Profit>50</Profit>
</Period>
<Period>
<Month>March</Month>
<Cost>100</Cost>
<Sell>150</Sell>
<Profit>50</Profit>
</Period>
</Sales>
よろしくお願いします