Pop up window attach xml

Here is a code to create one pop up when clicked a button and close it when required. I found it in “www.actionscript.org” but I like to attach this one to xml to fetch “title” and “message” from the xml. I tried but could not succeed, please advice how I wrote the xml and AS as well to create it. Here is the code


function createPopUp(title, message) { 	var title="My name "; 	var message ="My Own Message "; 	pop_up_menu = _root.attachMovie("pop-up-menu", title, 100000, {_x:Stage.width/2, _y:Stage.height/2}); 	// for placing in a certain place on the stage usethis one {_x:100, _y:100}); 	 	pop_up_menu.title_text.text = title; 	pop_up_menu.message_text.text = message;  	pop_up_menu.close_button.onRelease = function() { 		this._parent.removeMovieClip(); 	}; }