Problem: XSD Error generating a classes from Schema

Hi guys, I trying to use Xsd.exe (.NET 2005) for create a VB class starting from XML Schema. This schema is really complex and really important for me because it is a schema of JDF standard. JDF is an international organization (www.CIP4.org) for develop communication standard protocol using XML format of course.

I developing an open source libraries using .Net 2005 in way that other peoples can use it for integrate JDF in .NET appications (today are available only for Java and C++).

I have to create a class from xsd files in way that I can manage easy all data in my new library.

The problem is that when I try to use XSD.exe for create VB class after several warning error XSD tell me:

Error: Error generating classes for schema 'e:\jdf\jdf'.
- The datatype 'http://www.CIP4.org/JDFSchema_1_3_Types:NMTOKENS' is missing.
If you would like more help, please type "xsd /?".

I'm not expert about XML or XSD, someone can help me and tell me what happened?

Thanks a lot for any type of help.
Erik

P.S.: I attached schema files
[1130 byte] By [ErikIce] at [2007-11-19 21:09:59]
# 1 Re: Problem: XSD Error generating a classes from Schema
'http://www.CIP4.org/JDFSchema_1_3_Types:NMTOKENS' in your JDFTypes.xsd file builds off of the default NMTOKENS type. However, this type has minimum length 1, not 0.

Change the corresponding part in your file

<xs:simpleType name="NMTOKENS">
<xs:restriction base="xs:NMTOKENS">
<xs:minLength value="1"/>
<xs:maxLength value="2048"/>
</xs:restriction>
</xs:simpleType>

Error easily found using XMLSpy.
jkmyoung at 2007-11-10 3:27:03 >
# 2 Re: Problem: XSD Error generating a classes from Schema
Hi guys, I trying to use Xsd.exe (.NET 2005) for create a VB class starting from XML Schema. This schema is really complex and really important for me because it is a schema of JDF standard. JDF is an international organization (www.CIP4.org) for develop communication standard protocol using XML format of course.

I developing an open source libraries using .Net 2005 in way that other peoples can use it for integrate JDF in .NET appications (today are available only for Java and C++).

I have to create a class from xsd files in way that I can manage easy all data in my new library.

The problem is that when I try to use XSD.exe for create VB class after several warning error XSD tell me:

Error: Error generating classes for schema 'e:\jdf\jdf'.
- The datatype 'http://www.CIP4.org/JDFSchema_1_3_Types:NMTOKENS' is missing.
If you would like more help, please type "xsd /?".

I'm not expert about XML or XSD, someone can help me and tell me what happened?

Thanks a lot for any type of help.
Erik

P.S.: I attached schema files
Hey Erik - Have you had any luck with the most recent JDF-V1.3 schema in VS2005? I am having the same problem you referenced trying to create C# classes and the most recent schema doesn't seem to work either, even though it appears to have already fixed the problem pointed out by jkmyoung... I'm also interested in your JDF / .NET code if you've made any progress on it. Thanks! -rg
RandyGrohs at 2007-11-10 3:28:09 >