# Using an input text field to filter xml

**URL:** <https://forum.kirupa.com/t/using-an-input-text-field-to-filter-xml/308338>\
**Category:** flash\
**Created:** [April 21, 2010, 8:30am UTC](https://forum.kirupa.com/t/using-an-input-text-field-to-filter-xml/308338 "2010-04-21T08:30:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxray](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@maxray](https://forum.kirupa.com/u/maxray)\
**Post date:** [April 21, 2010, 8:30am UTC](https://forum.kirupa.com/t/using-an-input-text-field-to-filter-xml/308338/1 "2010-04-21T08:30:28Z")

</div>

Hi, I am having a problem getting my xml to filter based on the contents of an input text box.

I have:

var myList:XMLList = myInput.item.name.(text() == str );

if I set str i.e.

var str:String = “Test”;

it works but if I set

var str:String = myInput.text;

It won’t.

Anyone have any idea as to why?

Cheers,
