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

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 4, 2003, 2:11pm UTC](https://forum.kirupa.com/t/fmx-3-d-array-and-xml/34589/2 "2003-11-04T14:11:20Z")

</div>

welcome roady!  
Sadly, and with this being your first post, you might not get too many takers. XML isn’t really a big discussion topic around here, especially when used with a 4-D array.

Id suggest a lot of tracing 😉 Id help more but I dont have much time on my hands at the moment.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 5, 2003, 7:51pm UTC](https://forum.kirupa.com/t/fmx-3-d-array-and-xml/34589/3 "2003-11-05T19:51:16Z")

</div>

oh ☹

why aint xml a big topic then ???
