MDe
MDe

Reputation: 383

Difficulty generating C# classes from complex XSD

I am trying to generate classes for JDF format, as available from here. I have tried using the xsd.exe tool and the error/warning that pops up is:

"Schema validation warning: Type is not declared, or is not a simple type."

And correct, the type is defined in an imported XSD file and is indeed a complex type.

When I open the XSD schema in Altova it all works like a charm, so there doesn't seem to be anything wrong with the schema itself.

Upvotes: 1

Views: 774

Answers (1)

Oliver
Oliver

Reputation: 1557

You have to provide all the referenced XSD files to XSD.exe:

xsd.exe schema1.xsd schema2.xsd schema3.xsd /c

Upvotes: 1

Related Questions