W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2003

Re: XML validation fails when schema includes another schema

From: <ron@high-valley.com>
Date: Fri, 28 Feb 2003 11:25:34 -0500
Message-ID: <1046449534.3e5f8d7ef28b5@webmail.high-valley.com>
To: Jeni Tennison <jeni@jenitennison.com>
Cc: xmlschema-dev@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:36 GMT