Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SchemaCache validate bug (0/1)

0 views
Skip to first unread message

Simon Fell

unread,
Feb 21, 2002, 12:29:31 AM2/21/02
to
Hi,

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

Brenda Bell

unread,
Feb 21, 2002, 4:07:13 PM2/21/02
to
I would love to see someone answer this one... I'm having the same problem
when I load a single schema into the cache... and the missing type is
xs:string!!! I tried fixing it by loading the XMLSchema.xsd and had the
same problem. Maybe I'll try changing the order.

"Simon Fell" <s...@zaks.demon.co.uk> wrote in message
news:2u097u46mv94ufca0...@4ax.com...

0 new messages