Issues w/ xsd.exe tool
-
Hello, First I'll state that I put this question on the XML section of the forum at www.asp.net and have not been able to get one response, perhaps someone here has run into this. I currently have an instance XML document that validates cleanly against an XSD file. That XSD has 2 tags referencing other component XSD files. All of the files are located in the same directory. The declaration and imports in the "parent" schema look like this: The first imported schema declaration looks like this: The second imported schema declaration looks like this: When I run the xsd.exe tool on the "parent" schema: xsd.exe -c -l:c# -n:XMLSerializationTest ConnectResponse.xsd I get nothing but errors....yet the instance of the actual XML document validates perfectly w/ the 3 schemas. Microsoft (R) Xml Schemas/DataTypes support utility [Microsoft (R) .NET Framework, Version 2.0.50727.42] Copyright (C) Microsoft Corporation. All rights reserved. Schema validation warning: The 'http://www.xyz.com/ARFResponse:Products' el ement is not declared. Line 12, position 7. Schema validation warning: The 'http://www.xyz.com/CPUResponse:Products' el ement is not declared. Line 13, position 7. Warning: Schema could not be validated. Class generation may fail or may produce incorrect results. Error: Error generating classes for schema 'ConnectResponse'. - The element 'http://www.xyz.com/ARFResponse:Products' is missing. Is there some limitation to using this tool when multiple XSDs comprise a set for validation purposes - i