cancel
Showing results for 
Search instead for 
Did you mean: 

XML Schema element missing when using Reference Schema Loader

Former Member
0 Kudos

Hello MII-User,

the following effect causes problems when using the Reference Schema Loader with MII 12.0.2.

We are using B2MML-V0201-Material which comes with MII. The reference xsd contains

#xsd:schema xmlns="http://www.wbf.org/xml/b2mml-v0201" xmlns:xsd="http://www.w3.org/2001/XMLSchema"#

After loading the reference schema and setting "LoadAtRuntime=true", we assign it to an XML variable. The xml is created, however, the xmlns:xsd="http://www.w3.org/2001/XMLSchema" part is lost now. The xml file starts with:

#?xml version="1.0" encoding="UTF-8"?><MaterialInformation xmlns="http://www.wbf.org/xml/b2mml-v0201"#

The xml file is sent to an MES which displays the error "Reference to xmlns:xsd="http://www.w3.org/2001/XMLSchema" is missing".

Where do we go wrong? Is there only one attribute copied to the "MaterialInformation" node?

Thanks for comments.

Michael

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Michael,

Be sure that the B2MML-V0201Common.xsd is present in the same location as the material xsd.

Sam

Former Member
0 Kudos

Hi Sam,

I have used the default schemas from xMII, so all xsd files are in the same place. However, maybe I should insert the new attribute into the common.xsd?

I will try tomorrow.

Regards

Michael

Former Member
0 Kudos

Sam - in V12 are schemas loaded from the file system or from the database? If the database, there's a good chance the schema processing engine (Xerces/Xalan) would have issues loading included or imported schemas...

0 Kudos

Rick,

It's not just a good chance it was a certainty...this was an issue that has been resolved. If the XSDs are in the same directory the import will work, part of the B2MML XSD compliance. Thanks for the heads up, much appreciated.

Sam