# \[FMX\] 3-d array and xml

**URL:** <https://forum.kirupa.com/t/fmx-3-d-array-and-xml/93731>\
**Category:** Uncategorized\
**Created:** [November 4, 2003, 9:34am UTC](https://forum.kirupa.com/t/fmx-3-d-array-and-xml/93731 "2003-11-04T09:34:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![roady](https://avatars.discourse-cdn.com/v4/letter/r/cdc98d/32.png) [@roady](https://forum.kirupa.com/u/roady)\
**Post date:** [November 4, 2003, 9:34am UTC](https://forum.kirupa.com/t/fmx-3-d-array-and-xml/93731/1 "2003-11-04T09:34:13Z")

</div>

Hi, this is my first test posting anything here, lets se how it goes :ne:

**My problem is like this:**  
I have an xml that looks like this _(but with a lot more nodes of course)_.

```auto

<info>
   <case id="01" client="nisse" desc="test test">
      <photo name="test.jpg" />
      <photo name="test2.jpg" />
   </case>
</info>

```

Everything works fine except that after about 3-4 runs when I converting the xml to an array the taggs turns empty :-\  
This also happends if it’s only one photo-tagg.

This is the code for the photo-tagg

```auto

var strLength;
	strLength = children*.childNodes.length;
	myArrayCases*[6] = new Array(strLength);
	
	for (j=0; j<strLength; j++){
		myArrayCases*[6][j] = new Array();
			myArrayCases*[6][j][0] = children*.childNodes*.attributes.name;	// Bildfilen
	}

```

The whole code and xmlfile is in the attached file, if you run it look in the output window and you’ll se what I mean.
