1

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.

Thomas Fritsch
  • 9,639
  • 33
  • 37
  • 49
MDe
  • 383
  • 1
  • 4
  • 8

1 Answers1

1

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

xsd.exe schema1.xsd schema2.xsd schema3.xsd /c
Oliver
  • 1,507
  • 1
  • 12
  • 23
  • Thank you, but now I have a different error: Schema validation warning: The complexType 'http://www.CIP4.org/JDFSchema_1_1:Comment_Type' has already been declared. Line 65, position 4. – MDe Jan 27 '15 at 12:49