How to get the value of a XML node which has a specific attribute value using JavaScript?
I have this XML file (stripped down): <?xml version="1.0" encoding="UTF-8"?> <Labels Version="24100002"> <Attendant>Attendant</Attendant> <Attendant Index="1">Car Park Attendant</Attendant> <Attendant Index="2">Entrance Attendant</Attendant> <Attendant Index="3">Auditorium Attendant</Attendant> <Attendant Index="4">Attendant 4</Attendant> </Labels> And, I have this JavaScript for loading a file: function loadXMLDoc(filename) { return…