Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xmlSchemaCache40 on schemas using 'includes'

Status
Not open for further replies.

SiJP

Programmer
May 8, 2002
708
GB
I am trying to validate some xml, using xsd documents that have a chamleon include design.

xsd 'A' has no namespace
xsd 'B' defines a namespace, and uses the include statement to refer to xsd 'A'.

If I try and add these schemas to the MSXML2 schema cache, I end up with an 'Undeclared XSD element' error (the element the error refers to a declared element in schema 'A').

Code:
    'Code is VBA, testing in MS Access 2003
    Dim xmlSchema As MSXML2.xmlSchemaCache40
    Set xmlSchema = New MSXML2.xmlSchemaCache40
    xmlSchema.Add "", "C:\temp\a.xsd"
    xmlSchema.Add "[URL unfurl="true"]http://www.mycompany.com/TEMP",[/URL] "C:\temp\b.xsd"

Can I use chamelon includes in MSXML2?

(The XSD files are not within my control which limits me for solutions.)

Thanks

------------------------
Hit any User to continue
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top