Re: XML validation fails when schema includes another schema

Hi Ron,

> Using MSXML4 SP1, I am unable to validate a document that XMLSpy 5
> can validate just fine. I have narrowed it down to the use of
> xs:include. If my schema includes another schema a validation error
> is returned that says:
>
> "The element 'RealTimeSIRequest' is used but not declared in the DTD/Schema"
>
> Can someone eyeball the schema and see if they see anything wrong?

Once I fixed the well-formedness errors in the instance document and
the included schema, this seemed to work fine. The wellformedness
errors were a typo in the end tag </VisaCaseNumber> (should be
</CaseNumber>) in the instance and a ' rather than a " closing the
xmlns:vsi attribute in TestSharedNoInclude.xsd schema.

But then, when these errors were present, I didn't get the error you
have above, so possibly the XML you posted wasn't the same that you
used. Or there might be something funny in the way that you're
invoking MSXML's validation.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Received on Friday, 28 February 2003 05:47:04 UTC