Edit The Code:
See Result »
Try it Yourself - ©
w3big.com
<!DOCTYPE html> <html> <head> <script src="loadxmldoc.js"> </script> </head> <body> <script> xmlDoc=loadXMLDoc("books_cdata.xml"); x=xmlDoc.getElementsByTagName("html")[0].childNodes[0]; y=x.splitText(8); document.write(x.nodeValue); document.write("<br>"); document.write(y.nodeValue); </script> </body> </html>