# Creating a Search for information in an XML file

**URL:** <https://forum.kirupa.com/t/creating-a-search-for-information-in-an-xml-file/310736>\
**Category:** flash\
**Created:** [June 17, 2010, 7:04pm UTC](https://forum.kirupa.com/t/creating-a-search-for-information-in-an-xml-file/310736 "2010-06-17T19:04:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KiKaL](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@KiKaL](https://forum.kirupa.com/u/KiKaL)\
**Post date:** [June 17, 2010, 7:04pm UTC](https://forum.kirupa.com/t/creating-a-search-for-information-in-an-xml-file/310736/1 "2010-06-17T19:04:54Z")

</div>

I’m trying to figure out the best way to create a search box that searches an XML document and returns the results. So far I know how to do a search that returns exact matches but I want to make it so if someone typed in say “Manager” it would return results that Also had “Sales Manager” or “Account Manager”.

Currently I have

```php
var authorList:XMLList = xmlData.job.(title == citySearch.text);

```

Which only works with exact results. What is the best way to get around this? Do I just need to bring in everything from the XML file and then compare it using .search()?
