Home | Top | Web development | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Returns an IXMLDOMParseError
object that contains information about the last parsing error.
var objError = objXMLDOMDocument.parseError;
The following script example uses the document's parseError
property to create an IXMLDOMParseError
object. It then tests the error and displays a message if one occurs.
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.4.0"); var myErr; xmlDoc.async = false; xmlDoc.load("books.xml"); if (xmlDoc.parseError.errorCode <> 0) { var myErr = xmlDoc.parseError; alert("You have error " + myErr.reason); } else { myErr = xmlDoc.parseError; if (myErr.errorCode != 0) { alert("You have error " + myErr.reason); } }
The property is read-only. It returns IXMLDOMParseError
.
This member is an extension of the World Wide Web Consortium (W3C) Document Object Model (DOM).
Home | Top | Web development | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |