# Searching xml data island with javascript

**URL:** https://forum.kirupa.com/t/searching-xml-data-island-with-javascript/167637
**Category:** Uncategorized
**Created:** [October 30, 2005, 1:18pm UTC](https://forum.kirupa.com/t/searching-xml-data-island-with-javascript/167637 "2005-10-30T13:18:14Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![theHollow](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/thehollow/32/106_2.png) [@theHollow](https://forum.kirupa.com/u/theHollow)
#### Post date: [October 30, 2005, 1:18pm UTC](https://forum.kirupa.com/t/searching-xml-data-island-with-javascript/167637/1 "2005-10-30T13:18:14Z")

</div>

If i have this data island in an html page:  
\<xml id=“wine\_notes” src=“wine\_notes.xml”\>\</xml\>

how can i search it with javascript? say the contents of the xml document is:  
\<wine\_notes\>  
\<wine\>  
\<house\>Chateau de La Chaize\</house\>  
\<region\>Brouilly, France\</region\>  
\<type\>Beaujolais\</type\>  
\</wine\>  
\<wine\>  
\<house\>Chateau d’Epire\</house\>  
\<region\>Savennieres, France\</region\>  
\<type\>Cuvee Speciale\</type\>  
\</wine\>  
\</wine\_notes\>

I want to compare the value of each house tag with a string entered into an input box. If a result is found, want it to display in a div. Can anyone tell me how to do this?

Thanks,  
Brendan Smtih
