# Xml

**URL:** <https://forum.kirupa.com/t/xml/327284>\
**Category:** Uncategorized\
**Created:** [February 19, 2012, 12:14pm UTC](https://forum.kirupa.com/t/xml/327284 "2012-02-19T12:14:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![federi](https://avatars.discourse-cdn.com/v4/letter/f/df705f/32.png) [@federi](https://forum.kirupa.com/u/federi)\
**Post date:** [February 19, 2012, 12:14pm UTC](https://forum.kirupa.com/t/xml/327284/1 "2012-02-19T12:14:59Z")

</div>

The following code shows a text field in all the magazines that contain the word “medieval”, I wish I could insert the word ‘medieval’ in the program but not in a text field input and have the results by clicking on a button.  
I thought it was rather easy and my presumption was punished.  
Someone provide me with good will, please, the correct code.  
Thanks, federi.

//I want all the articles whose title is the Middle Ages:  
var xmlLoader:URLLoader = new URLLoader();  
var xmlRequest:URLRequest = new URLRequest(“rivista.xml”);  
function mostra(e:Event) {  
var xml:XML = new XML(e.target.data);  
var xmlList:XMLList = xml.rivista.(titolo==“medioevo”);  
var t:String=(xmlList);  
testo.appendText(t)  
}  
xmlLoader.addEventListener(Event.COMPLETE, mostra);  
xmlLoader.load(xmlRequest);
