Jun 16, 2011 at 3:28 PM
Edited Jun 16, 2011 at 3:31 PM
You've taken on a difficult problem and produced a very useful tool to address it. Thanks!
I have encountered a bug that you may want to address. The order of entries in the <schemaFiles> collection in .shfbproj may cause the tool to fail.
If the collection contains:
<schemaFile path="Schemas\*.xsd" />
SHFB raises the error:
SHFB: Error BE0029: Unexpected error while executing plug-in 'XML Schema Documenter':
There was an error constructing the schema set. ---> System.Xml.Schema.XmlSchemaException:
The complexType '/CommonTypes:CompanyType' has already been declared.
But if the collection contains:
<schemaFile path="Schemas\Reference.xsd" />
<schemaFile path="Schemas\Container.xsd" />
<schemaFile path="Schemas\CommonTypes.xsd" />
<schemaFile path="Schemas\Arrival_BL_Canonical_Xml.xsd" />
the process runs to completion. The Arrival_BL_Canonical_Xml.xsd schema imports the other three schemas. But it seems to me that the order of entry in the schemaFiles collection should not cause