根據XML規範,編寫多維項目數組的佈局更正確嗎?以XML格式編寫2D點網格
這一個:
<Points>
<Row index="0">
<V>
<X>110</X>
<Y>0</Y>
</V>
<V>
<X>109.5105</X>
<Y>3.0901</Y>
</V>
</Row>
<Row index="1">
<V>
<X>110</X>
<Y>0</Y>
</V>
<V>
<X>109.5105</X>
<Y>3.0901</Y>
</V>
</Row>
...
或這一個?
<Points rows="4" columns="2">
<V>
<X>110</X>
<Y>0</Y>
</V>
<V>
<X>109.5105</X>
<Y>3.0901</Y>
</V>
<V>
<X>110</X>
<Y>0</Y>
</V>
...
謝謝。
類似:http://stackoverflow.com/questions/38197743/writing-2d-point-in-xml-format – abenci