# XML based search

**URL:** https://forum.kirupa.com/t/xml-based-search/283092
**Category:** flash
**Created:** [March 2, 2009, 4:24pm UTC](https://forum.kirupa.com/t/xml-based-search/283092 "2009-03-02T16:24:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ChrisTheGrigg](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@ChrisTheGrigg](https://forum.kirupa.com/u/ChrisTheGrigg)
#### Post date: [March 2, 2009, 4:24pm UTC](https://forum.kirupa.com/t/xml-based-search/283092/1 "2009-03-02T16:24:34Z")

</div>

Hi all,

I have followed the tutorial on Kirupa for an XML based search but I now need the search facility to recognise the search phrase regardless of uppercase or lowercase letters.

The tutorial is named [SIZE=2][COLOR=Black]"**[FONT=Verdana]Introduction[/FONT]**[/COLOR][/SIZE][FONT=Verdana][SIZE=4][COLOR=#003366][SIZE=2][COLOR=Black] to XML in Flash" and the url is:  
[http://www.kirupa.com/web/xml/examples/searchbestof.htm](http://www.kirupa.com/web/xml/examples/searchbestof.htm)

The closest I can get is:

```
var nodesWithQuery = SearchXML(
                      //array of elements to be searched
                            posts_xml.firstChild.childNodes.toLowerCase(),
                      //what is to be searched
                            search_fields.query_txt.text.toLowerCase(),
                      //an array of elements within the elements searched...to be searched
                            searchElements
                        );

```

But to no avail

Thanks in advance.

Chris  
[/COLOR][/SIZE][/COLOR][/SIZE][/FONT]
