XML question

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?


//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");