私はフォーマットのExcelで生成されたXMLから行こうとしています:
...
<Column255>1</Column255>
<Column256>1</Column256>
</Row>
<Row>
<Column1>1</Column1>
<Column2>1</Column2>
<Column3>1</Column3>
...
(これがずっと続く)
最終的には、256x256 グリッドを次のような形式にマップします。
<map_point>
<x>0</x>
<y>0</x>
<value>1</value>
</map_point>
<map_point>
<x>0</x>
<y>1</x>
<value>1</value>
</map_point>
どうすればいいですか?
私の大まかな計画は、for-each
各行で使用してx
それを座標に書き込むことでしたが、列タグがすべて異なることに困惑したためfor-each
、現在はy
座標を取得するために使用できません。