XML validation
-
How can i make IE 6.0 to validate an
xml
based on a Schema? Is it possible? It seems to ignore thexsd
file. :confused: rechiIf I recall correctly, IE does not try to validate XML documents. You need to write a bit of code that sets the DOM's validateOnParse property to true and then loads the XML document into the DOM. Here's a JavaScript sample from the MSXML 4.0 SDK:
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.4.0"); xmlDoc.async = false; xmlDoc.validateOnParse = true; xmlDoc.load("books.xml");
Erik Westermann Author, Learn XML In A Weekend (October 2002) -
If I recall correctly, IE does not try to validate XML documents. You need to write a bit of code that sets the DOM's validateOnParse property to true and then loads the XML document into the DOM. Here's a JavaScript sample from the MSXML 4.0 SDK:
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.4.0"); xmlDoc.async = false; xmlDoc.validateOnParse = true; xmlDoc.load("books.xml");
Erik Westermann Author, Learn XML In A Weekend (October 2002)