2. xmlDoc=loadXMLDoc("books.xml");
var x=xmlDoc.getElementsByTagName('title');
for (i=0;i<x.length;i++)
{
document.write(x[i].childNodes[0].nodeValue)
document.write("<br />")
}
1. It is books .xml
2. I wanted only title of books i did via xml DOM but am not getting the output. Can u explain me how to get about. I need 2 get the title of book.