# XML flash search tool NEARLY working, my loop not quite right, any ideas?

**URL:** <https://forum.kirupa.com/t/xml-flash-search-tool-nearly-working-my-loop-not-quite-right-any-ideas/316333>\
**Category:** flash\
**Created:** [November 18, 2010, 3:01pm UTC](https://forum.kirupa.com/t/xml-flash-search-tool-nearly-working-my-loop-not-quite-right-any-ideas/316333 "2010-11-18T15:01:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cuz83](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@cuz83](https://forum.kirupa.com/u/cuz83)\
**Post date:** [November 18, 2010, 3:01pm UTC](https://forum.kirupa.com/t/xml-flash-search-tool-nearly-working-my-loop-not-quite-right-any-ideas/316333/1 "2010-11-18T15:01:36Z")

</div>

Hi All, thanks for taking the time to read. Just struggling with this a bit as I don’t work with flash day to day.

Essentially I have a XML file which I am trying to integrate a search feature. I have attached a zipped folder of my working example.

In this XML file is a collection of modules: 1.1, 1.2, 1.3 etc…

Each module is broken down further:  
1.1has: 1.1.1, 1.1.2, 1.1.3  
1.2has: 1.2.1, 1.2.2, 1.2.3, 1.2.4 etc…

I have a search feature that is searching the XML, then outputting the content if found.

Now this is working OK for a specific module listed above, for example, in my zipped example, I can get it to search 1.1.1, 1.1.2, 1.1.3 etc…

What I can’t seem to get working is how to search all of the modules sections: eg: 1.1: 1.1.1-1.1.x, 1.2: 1.2.1 – 1.2.x and so on depending on how much content is sorted in my XML.

I think it is a case of adding a third loop to what I have got already, but I am not sure as it doesn’t seem to work! Driving me potty!

If anyone could take a look and have a tinker that would be fab.

Here is the source: [http://ian.greensplash.com/xml/xmlSearch.zip](http://ian.greensplash.com/xml/xmlSearch.zip)

Thanks

Ian

:cantlook:
