MSXML2.DOMDocument40 and XML schemas

Hi all,

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:

<?xml version="1.0"?>

lamont adams
my book
it's fantasy till I write it

I haven't been able to get the parser to automatically load the associated schema when the document is loaded. When I load the schema into the DOMDocument40.schemas schema cache, and validate the 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 help or suggestions would be appreciated.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!