If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Validating XML

Am trying to validate a XML document against a schema. The document validates
100% if I use XML Spy. However if I use the MSXML2.DOMDocument40 and MSXML2.XMLSchemaCache40
objects the following happens.

Re: Validating XML

I get that error all the time... it may have something do do with how you
set the xmlns attribute in your instance document, person.xml. I ended up
setting xmlns in the instance document to a string such as "urn:myname" or
"schema.xsd", and then setting something like xmlns:t to the same value in
the schema document, where t is the prefix for the default namespace. I
hope that helps.