<!DOCTYPE html>src="/statics/demosource/loadxmldoc.js"//check if the first node is an element nodefunction get_nextSibling(n){y=n.nextSibling;while (y.nodeType!=1){y=y.nextSibling;}return y;}xmlDoc=loadXMLDoc("/statics/demosource/books.xml");x=get_nextSibling(xmlDoc.getElementsByTagName("title")[0]);document.write(x.nodeName);