<!DOCTYPE html>src="/statics/demosource/loadxmldoc.js"xmlDoc=loadXMLDoc("/statics/demosource/books.xml");newComment=xmlDoc.createComment("Revised April 2008");x=xmlDoc.getElementsByTagName("book")[0];x.appendChild(newComment);document.write(x.lastChild.nodeValue);