Parsing XML to get different outputs

Hi all,

I`m trying to load different texts from one XML file into my pre-defined areas. It works with one text…I gt to my frame where the as below is and the text gets loaded. BUT how do I need to proceed if I want to go to another frame and have a different text loaded from the same XML file?

I dont know if this is the best way to do this - so Im open for suggestions.

Thanks in advance,
m.

function loadXML(loaded) {
	if (loaded) {
		_root.inventor = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
		_root.comments = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
		name_txt.text = _root.inventor;
		comment_txt.text = _root.interview_sunset;
	} else {
		content = "file not loaded!";
	}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("inventors.xml");
stop();