I'm loading three related schemas into the schema cache, and then
asking it to validate. Depending on the order the schemas are added,
the validation will either pass or fail with a missing type error.
Dim sc As XMLSchemaCache40
Set sc = New XMLSchemaCache40
sc.validateOnLoad = False
sc.Add "http://soapinterop.org/person", "G:\soap3.xsd"
sc.Add "http://soapinterop.org/employee", "G:\soap2.xsd"
sc.Add "http://tempuri.org/", "G:\soap1.xsd"
sc.Validate
The above works, but if the order is changed to
Dim sc As XMLSchemaCache40
Set sc = New XMLSchemaCache40
sc.validateOnLoad = False
sc.Add "http://tempuri.org/", "G:\soap1.xsd"
sc.Add "http://soapinterop.org/employee", "G:\soap2.xsd"
sc.Add "http://soapinterop.org/person", "G:\soap3.xsd"
sc.Validate
I get this error when Validate is called
"file:///g:/soap2.xsd#/schema[1]/complexType[position()=1 and
@name='Employee']/sequence[1]/element[position()=1 and @name='person']
Undeclared XSD Type : '{http://soapinterop.org/person}Person'
Surely the order they get added shouldn't make any difference ? The
schema files are attached. This is with the RTM MSXML4.0 on W2K SP2
Thanks
Simon
www.pocketsoap.com
"Simon Fell" <s...@zaks.demon.co.uk> wrote in message
news:2u097u46mv94ufca0...@4ax.com...