Home Page › Forums › BizTalk 2004 – BizTalk 2010 › SchemaLocation problem › SchemaLocation problem
Hello,
I generated a schema for a wellformed XML document in BizTalk 2006.
I’d like to use this schema (well, in fact 2 schemas with one importing the other) in BizTalk 2004. However, when validating the original XML document, I get an error message :
[quote:bcae7a6e62]error BEC2004: Cannot load schema for the namespace ‘http://namespace2’ – Could not find file \”Z:\\ … \\InvoiceAdditionalNL.xsd\”.. An error occurred at file:///Z:/INVOICE.XML[/quote:bcae7a6e62]
So this seams to be a problem with the second namespace in te schemaLocation attribute when validating in BTS2004. The schemaLocation in the XML document is as follows:
[code:1:bcae7a6e62]<Invoice xmlns=\"http://namespace1\"
xmlns:nl=\"http://namespace2\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xsi:schemaLocation=\"http://namespace1 Invoice.xsd http://namespace2 InvoiceAdditionalNL.xsd\">[/code:1:bcae7a6e62]
When I remove the schemaLocation, the document validates fine. In BizTalk 2006, the original XML document validates without any problems.
Anyone who knows how to fix this, or knows a workaround? I receive the documents with the schemaLocation specified as above.
Thanks,
Dirk