I have the following API
<event>
<match_id>2079876</match_id>
<o1>2.57</o1>
<oX>2.70</oX>
<o2>2.80</o2>
<oU>1.38</oU>
<oO>2.52</oO>
<oG>2.05</oG>
<oNG>1.58</oNG>
<p1>2.70</p1>
<pX>2.81</pX>
<p2>2.99</p2>
<pU>1.42</pU>
<pO>2.82</pO>
</event>
<event>
<match_id>2081006</match_id>
<o1>1.12</o1>
<oX>6.35</oX>
<o2>14.50</o2>
<oU>2.95</oU>
<oO>1.28</oO>
<oG>1.87</oG>
</event>
and I have a function that fetchs the API and then I created one that gets as input <match_id>2079876</match_id>
and I want to find this id from the xml and display the <o1> or <o2> depends on the choice
function findSpecific(xml, choice, place){
let matches = xml.getElementsByTagName('event');
//console.log(matches[0]);
}