Re: XML validation fails when schema includes another schema

My apologies to those who read the message and found the well-formed errors.  I 
had to change some things for the public forum because of confidentiality 
issues and non-disclosure, etc.  The working example does not have those 
errors, and I was able to run it through XSV without complaint.  I was also not 
aware of the proper use of the url's "www.example.org" and "www.example.com" 
instead of the ones that I used for schemalocation.

I am thinking that this is an MSXML4.0 bug, but curiously I cannot find any 
other references to the problem.  There has been no response to my question on 
the microsoft forum.  One possibility is that I am validating the document 
during the load of the xml instead of using a schemacache.

At least I know there is nothing wrong with the schema now.

Thanks -

Ron Thompson
 
Quoting Jeni Tennison <jeni@jenitennison.com>:

> 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/
> 
> 




-------------------------------------------------
This mail was sent using www.Now2net.net

Received on Friday, 28 February 2003 11:25:57 UTC