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++) {
	} else {
		title_txt.text = "Error!";