how to retrieve data from xml in javascript.
data.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<Lexical-Entry>
<Synset>
<Word val="aare"/>
<SynsetRelation>
<Relation att="iof" hypernym="thing" val="river"/>
</SynsetRelation>
<ID WordnetId="09186064" uw_id="1"/>
</Synset>
<Synset>
<Word val="aarhus"/>
<SynsetRelation>
<Relation att="iof" hypernym="thing" val="city"/>
<Relation att="equ" val="arhus"/>
</SynsetRelation>
<ID WordnetId="08762104" uw_id="2"/>
</Synset>
<Synset>
<Word val="aaron"/>
<SynsetRelation>
<Relation att="icl" hypernym="abstract_thing" val="name"/>
<Relation att="com" val="male"/>
<Relation att="nam" val="person"/>
</SynsetRelation>
<ID WordnetId="0" uw_id="3"/>
</Synset>
</Lexical-Entry>
test.html
<html>
<body>
<div>
<h1>Search Word</h1>
<br/>
<input type="text" name="SearchValue" placeholder="Enter a word" />
<br/>
<br/>
<input type="submit" value="Search"/>
</div>
</body>
</html>
when user enters a word to search for ex:aaron it should retrieve values of aaron synset. and when user enters word it should search that word in data.xml and then retrieves values of aaron synset.