If the XML file you are retrieving has invalid markup, then on line 20 xmlDoc will be set to null. If that is the case, then xmlDoc.getElementsByTagName() will give you the error you are describing. So, you need to make sure that the responseXML is not null.
On your XML file, line 18 has a typo, making your xml markup invalid.
hielo
Veteran Poster
1,124 posts since Dec 2007
Reputation Points: 116
Solved Threads: 244
Try
var x=xmlDoc.getElementsByTagName("CD"); alert(x)
If your alert doesn't contain what you asked for, it means that your xhtml request failed. So you should examine your xmlhttp request code in more detail and see if its complete.
Troy III
Practically a Master Poster
609 posts since Jun 2008
Reputation Points: 120
Solved Threads: 80