# Loading xml in textArea

**URL:** https://forum.kirupa.com/t/loading-xml-in-textarea/266344
**Category:** Uncategorized
**Created:** [July 18, 2008, 4:35pm UTC](https://forum.kirupa.com/t/loading-xml-in-textarea/266344 "2008-07-18T16:35:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kagamushu](https://avatars.discourse-cdn.com/v4/letter/k/ee59a6/32.png) [@kagamushu](https://forum.kirupa.com/u/kagamushu)
#### Post date: [July 18, 2008, 4:35pm UTC](https://forum.kirupa.com/t/loading-xml-in-textarea/266344/1 "2008-07-18T16:35:37Z")

</div>

Hello,  
i would like to load the information contained in a specific tag of my xml page inside a textArea component. The following code displays the entire xml page including the tags. Anybody know how to tell flash to display only the info from inside a specific tag?  
code:  
var xml:XML;

var urlRequest:URLRequest = new URLRequest(“mlb.xml”);  
var urlLoader:URLLoader = new URLLoader();  
urlLoader.dataFormat = URLLoaderDataFormat.TEXT;  
urlLoader.addEventListener(Event.COMPLETE, urlLoader\_complete);  
urlLoader.load(urlRequest);

function urlLoader\_complete(evt:Event):void {  
xml = new XML(evt.target.data);  
textArea.text = xml.toXMLString();  
}

thanks
