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]; x.replaceData(3,8,"Fantastic"); document.write(x.nodeValue); </script> </body> </html>