Martin Liss
I have tried the code that you posted in your linked thread but I still have a problem.


When I run the following line of code:
VB Code:
  1. oxmlSchema.Add "", strSchemaFile
I get the following error:
Code:
Incorrect definition for the root element in schema.
I know my schema is valid because it validates here.

There is one difference I should mention, I had to define my schema object as: MSXML2.XMLSchemaCache30
This is because I get the following run time error when I attempt to instantiate an object of type: MSXML2.XMLSchemaCache40:
Code:
Unable to create ActiveX object
Any thoughts?