// Variablendeklaration
function loadXMLDoc(url){ var xmlhttp;var txt,xx,x,i;if (window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();}else{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}xmlhttp.onreadystatechange=function(){if (xmlhttp.readyState==4){txt="<table border='1'> <tr> <th>Titel</th> <th>Interpret</th> </tr> ";x=xmlhttp.responseXML.documentElement.getElementsByTagName("cd");for (i=0;i<x.length;i++){txt=txt + " <tr> ";xx=x[i].getElementsByTagName("title");{try{txt=txt + " <td>" + xx[0].firstChild.nodeValue + "</td> ";}catch (er){txt=txt + " <td>&nbsp;</td> ";}}xx=x[i].getElementsByTagName("artist");{try{txt=txt + " <td>" + xx[0].firstChild.nodeValue + "</td> "; }catch (er){txt=txt + " <td>&nbsp;</td> ";}}txt=txt + " </tr> ";}txt=txt + " </table>";document.getElementById('responseDiv').innerHTML=txt;}}xmlhttp.open("GET",url,true);xmlhttp.send();}