# XML - using dynamic filters

**URL:** <https://forum.kirupa.com/t/xml-using-dynamic-filters/308437>\
**Category:** flash\
**Created:** [April 22, 2010, 7:07pm UTC](https://forum.kirupa.com/t/xml-using-dynamic-filters/308437 "2010-04-22T19:07:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chromeboy](https://avatars.discourse-cdn.com/v4/letter/c/c89c15/32.png) [@Chromeboy](https://forum.kirupa.com/u/Chromeboy)\
**Post date:** [April 22, 2010, 7:07pm UTC](https://forum.kirupa.com/t/xml-using-dynamic-filters/308437/1 "2010-04-22T19:07:55Z")

</div>

Hi!

I use AS3 to read an XML and filter the results.  
However, is there a way to use a string var to make a dynamic request, then use it to apply filters?

I would like to replace:

```php
var myXMLFile.items.item.(size > 100 && size <100).name;

```

by

```php
var myRequest:String = "size > 100 && size <100";
var myXMLFile.items.item.(myRequest).name;

```

Unfortunately, it does not work ☹

Does someone have an idea to help? 🙂
