# XML question

**URL:** <https://forum.kirupa.com/t/xml-question/204004>\
**Category:** Uncategorized\
**Created:** [October 16, 2006, 1:18pm UTC](https://forum.kirupa.com/t/xml-question/204004 "2006-10-16T13:18:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennymartensson](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bennymartensson/32/1317_2.png) [@bennymartensson](https://forum.kirupa.com/u/bennymartensson)\
**Post date:** [October 16, 2006, 1:18pm UTC](https://forum.kirupa.com/t/xml-question/204004/1 "2006-10-16T13:18:55Z")

</div>

Is there someway I can put some info to my XML-file _(gallery.xml)_ to be able to get some numbers out of it? I have this code and in the bottom where the path to my XML-file is, I want to be able to write those numbers in my XML and then let flash get them. Example: gallery\_xml.load(“main”+ **GET THE FIRST NUMBER** +"/sub"+ **GET THE SECOND NUMBER** +"/gallery.xml");. Anyone gets the question?

```auto

//loading pics and text:
var gallery_xml = new XML();
gallery_xml.ignoreWhite = true;
gallery_xml.onLoad = function(success) {
	if (success) {
		var gallery = this.firstChild;
		gallery_txt.text = gallery.attributes.info;
		for (var i = 0; i<gallery.childNodes.length; i++) {
			tArray.push(gallery.childNodes*.attributes.title);
			pArray.push(gallery.childNodes*.attributes.source);
		}
		containerMC.loadPic(0);
	} else {
		title_txt.text = "Error!";
	}
}
gallery_xml.load("main1/sub1/gallery.xml");

```
