1 Reply Latest reply on Jul 4, 2006 2:36 AM by blemmo

    convert multi dimentional array to xml

      hi all,
      anyone knows how to convert a multi-dimentional array to xm.
      also the reverse- xml to multi dimentional array.


        • 1. Re: convert multi dimentional array to xml
          blemmo Level 1
          See the attached code for an example.
          Basically, you must loop through the array elements, create a node for each element, and do the same for the nested array. You can keep that structure in the xml by adding the nested elements as childnodes to the first node. I used "super" for the first array's elements and "sub" for the elements contained in that element.
          If you need more details just tell.