Error using XSD.exe creating a .NET classes

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 ( 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 '' 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.

P.S.: you can download an example of schema files here :
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

As I posted at CodeGuru:
'' 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"/>              <--   THIS LINE HERE -->
            <xs:maxLength value="2048"/>

Error easily found using XMLSpy.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.