Saving/loading Multidimensional Arrays to and from XML

Hi,
Just curious if there is a quick/smart way to dump and retrieve multidimensional arrays to XML.

I was going to take this tedious approach, with a bunch of loops for each dimension but I have a dozen arrays to handle in total :frowning:

  
  
 //Fill Array  
    while(indexA<7){  
        XML.setValue("PT:X", xmlStylus, synthArray[indexA][indexB][indexC]);indexA++;xmlStylus++;  
        indexB=1;  
     while(indexB<3){  
        XML.setValue("PT:X", xmlStylus, synthArray[indexA][indexB][indexC]);indexB++;xmlStylus++;  
         indexC=1;  
    while(indexC< 17){  
        XML.setValue("PT:X", xmlStylus, synthArray[indexA][indexB][indexC]);indexC++;xmlStylus++;  
    }}}  
  
  

thanks for any tips!

Hey,

Solved it thanks to this post! Arrays can indeed be dumped and retrieved :slight_smile:

http://stackoverflow.com/questions/11970144/is-it-possible-to-store-2d-array-in-info-plist