I'm creating an action script 3 (Flash CS5) application. I have a 2D array like this:
var data:Array = new Array(5);
data[0] = new Array(5);
data[0] = new Array(2);
data[0] = new Array(6);
data[0] = new Array(4);
data[0] = new Array(1);
how can i serialize it az XML instance and save data in it. for example like this:
<page id="1">
<item id="1">
</item>
<item id="2">
</item>
<item id="3">
</item>
<item id="4">
</item>
<item id="5">
</item>
</page>
<page id="2">
<item id="1">
</item>
<item id="2">
</item>
</page>
<page id="3">
<item id="1">
</item>
<item id="2">
</item>
<item id="3">
</item>
<item id="4">
</item>
<item id="5">
</item>
<item id="6">
</item>
</page>
<page id="4">
<item id="1">
</item>
<item id="2">
</item>
<item id="3">
</item>
<item id="4">
</item>
</page>
<page id="5">
<item id="1">
</item>
</page>
Any sample code will be greate! Thanks in advance :D