# XML with Javascript - How do I access the values?

**URL:** <https://forum.kirupa.com/t/xml-with-javascript-how-do-i-access-the-values/161832>\
**Category:** web dev\
**Created:** [September 7, 2005, 2:27pm UTC](https://forum.kirupa.com/t/xml-with-javascript-how-do-i-access-the-values/161832 "2005-09-07T14:27:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joecorr](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joecorr/32/1486_2.png) [@joecorr](https://forum.kirupa.com/u/joecorr)\
**Post date:** [September 7, 2005, 2:27pm UTC](https://forum.kirupa.com/t/xml-with-javascript-how-do-i-access-the-values/161832/1 "2005-09-07T14:27:20Z")

</div>

I’m working on a simple AJAX script that looks at a dynamic calendar and rewrites a DIV with the code from an XML file that’s created via a ColdFusion file.

I have the AJAX part working by looking at ‘responseText’ from the XMLHttpRequest call, but when I try and look at the ‘responseXML’ I run into issues. Here is the code:

```auto
var myitem = http.responseXML.childNodes[1].childNodes[1];
var myresult = "<ul>";//myitem.childNodes[8].length;
for(i=0;i<12;i++){
  var v = myitem.childNodes*;
  myresult += "<li>" + i + " - " + v.nodeName + " - " + v.nodeValue + "";
}
myresult += "</ul>done";
document.getElementById('foo').innerHTML = myresult;

```

This returns the following:

[list]  
[_]0 - #text -  
[_]1 - title - null  
[_]2 - #text -  
[_]3 - link - null  
[_]4 - #text -  
[_]5 - description - null  
[_]6 - #text -  
[_]7 - image - null  
[_]8 - #text -  
[_]9 - item - null  
[_]10 - #text -  
[_]11 - item - null  
[/list]Though I KNOW that I have values for this, as the XML is this:  
[http://www.scad.edu/customcf/displayCalendar.cfm?mode=rss&category=21](http://www.scad.edu/customcf/displayCalendar.cfm?mode=rss&category=21)

What gives? How do I actually grab the text in those nodes?
