i'm currently struggling to solve a very annoying issue that appeared when I was programming my HTML page
I'm getting an error in this function

function Tags()

        if ( xmlHttpObj.readyState == 4 && xmlHttpObj.status == 200)

            var docXML = xmlHttpObj.responseXML;

            var tagsElem= docXML.getElementsByTagName("name");
            var tags = new Array(tagsElem.length);
            var i;

            for(i=0; i<tagsElem.length; i++){
                var elem=tagsElem[i];
                tags[i] = elem.childNodes[0].nodeValue;


My XML is in the following format:


I have no idea why I'm not able to use the getElementsByTagName function, since the Check alert won't even pop up after I compile that call.