# Search through XML array

**URL:** <https://forum.kirupa.com/t/search-through-xml-array/291813>\
**Category:** flash\
**Created:** [July 6, 2009, 9:28am UTC](https://forum.kirupa.com/t/search-through-xml-array/291813 "2009-07-06T09:28:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alterpath](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@alterpath](https://forum.kirupa.com/u/alterpath)\
**Post date:** [July 6, 2009, 9:28am UTC](https://forum.kirupa.com/t/search-through-xml-array/291813/1 "2009-07-06T09:28:01Z")

</div>

Hello guys,

I’m working with tons of array generated from a XML.

How should I go about creating a search function that will be able to search and retrieve a particular nod from the array.

Sth to do with .toLowerCase() and getIndexOf? The search function should be able to search and retrieve any text that contain the letter/letters… not the whole word. Like for example if user enter “gre”, it should retrieve results containing “great” and so on.

I’m not exactly sure how I should apply.

Help will be greatly appreciated! 🙂 Cheers!
