I am fetching some XML from Flickr and want to parse it based on DOM. can't get my code to work with the following:
...
if (this.responseXML != null)
{
content = this.responseText.getElementsByTagName('content')
for (i = 0 ; i < content.length ; i++)
{
out += content[i].childNodes[0].nodeValue + '<br />'
}
document.getElementById('info').innerHTML = out
}
...
this however returns the full content of the call:
...
if (this.responseXML != null)
{
document.getElementById('info').innerHTML =
this.responseText
}
...
which leads me to think that my AJAX code is correct but that i'm doing something wrong in the parsing code
Note: this is related another post althought he problem is a different one