[b][red]This message was edited by Badfrog66 at 2002-9-26 10:32:50[/red][/b][hr]
I've been messing around with MS's DOM parser, trying to validate a document against a schema. I've got the following XML doc:
it's fantasy till I write it
that I built with MSXML2.DOMDocument40
I haven't been able to get the parser to automatically load the associated schema when the document is loaded (thought that the xmlns and noNamespaceSchemaLocation attributes on the root element would do the trick, but it doesn't). When I load the schema into the DOMDocument40.schemas schema cache, and validate the above document I get an error: "The attribute 'noNamespaceSchemaLocation' on this element is not defined in the DTD/Schema." Well, of course it isn't!
The document validates fine in XMLSpy, so I'm not sure what's up here. I initially thought this was a bug, but there's nothing in the MSKB about it, so I assume I'm not doing something with DOMDocument40 that I'm supposed to in order to make this work. Any ideas?
0 · ·