Tryit Editor v2.3

Edit This Code:
<html> <body> <h3> This demonstrates a parser error: </h3> <script> var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async="false"; xmlDoc.validateOnParse="true"; xmlDoc.load("note_dtd_error.xml"); document.write("<br>Error Code: "); document.write(xmlDoc.parseError.errorCode); document.write("<br>Error Reason: "); document.write(xmlDoc.parseError.reason); document.write("<br>Error Line: "); document.write(xmlDoc.parseError.line); </script> </body> <!-- Mirrored from www.w3schools.com/dtd/tryit.asp?filename=note_error_three by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:45:49 GMT --> </html>
Result:
Try it Yourself - © w3schools.com