- From: <tim.heilman@epiphany.com>
- Date: Fri, 31 Aug 2001 20:58:34 -0400 (EDT)
- To: xmlschema-dev@w3.org
Hi, I'm trying to validate an XML document with MSXML4's IDomDocument2 "validate" command. Unfortunately, the ParseError object returned by this command does not contain the line number and position. As a workaround, I've tried to use the IDomDocument loadXML(), passing it an XML string and anticipating that it will validate on parse. Instead, unless the validateOnParse property is set to false, the IDomDocument's readyState never progresses to 4: "complete", and until readyState progresses to 4, no parseError properties are meaningful. All other examples of XML validation with MSXML4 I've seen show the use of the IDomDocument load() command, which is unavailable to me since I'm working within a browser and cannot write to the filesystem, then call load() on the written file. Has anyone managed to get the error line number and position of a validation against an XSD schema with MSXML4 without using the IDomDocument load() command? -Tim Heilman
Received on Saturday, 1 September 2001 06:29:17 UTC