Trouble loading XML text

Hello,

I’m trying to load different XML content with buttons. Basically all i’m able to do right now is have the XML load when I test the movie. Outside of that I haven’t been able to get my script correct to call up the XML when a button is clicked.
Here’s the code i’ve been trying:

var content_req: URLRequest = new URLRequest (“http://www.kirupa.com/net/files/sampleXML.xml”);
var content_ldr: URLLoader = new URLLoader (content_req);
content_ldr.addEventListener(Event.COMPLETE, onComplete);
function onComplete(event:Event):void {
content_txt.text = event.target.data;
}

var newContent_req: URLRequest = new URLRequest (“http://www.kirupa.com/net/files/sampleXML.xml”);
var newContent_ldr: URLLoader = new URLLoader (newContent_req);
newContent_ldr.addEventListener(Event.COMPLETE, getnewText);
function getnewText(event:MouseEvent):void {
content_txt.text = event.target.data;
}
btn_2.addEventListener(MouseEvent.CLICK, getnewText);

So this is wrong because when i export my movie and click on the button I get this message:

TypeError: Error #2007: Parameter text must be non-null.
at flash.text::TextField/set text()
at dynamicText_fla::MainTimeline/getnewText()

Also, when the XML does load into the text field, I’m getting the entirety of the XML document, not just the bits of information that I want. It wasn’t doing this before when I would just export the movie and the XML information would come up in the output panel.

Sorry for all the questions, I’ve been searching for help for days. Please help this make more sense to me if you can