Edit The Code:
See Result »
Try it Yourself - ©
w3big.com
<!DOCTYPE html> <html> <head> <script src="loadxmldoc.js"> </script> </head> <body> <script> xmlDoc=loadXMLDoc("note_internal_dtd.xml"); document.write(xmlDoc.doctype.nodeName); </script> </body> </html>