Welcome to MSDN Blogs Sign in | Join | Help

XSD.exe: Error generating classes for schema 'MySchema.xsd'. - The element 'http://schemas.DomainName.com/types:MyType' is missing.

If you are getting this kind of error it is probably because the XSD.exe utility is not following imports and/or includes in your XSD. To solve this issue, specify all the required XSD files directly on the command line as follows:

xsd.exe /c MySchema.xsd Import01.xsd Import02.xsd Include01.xsd Include02.xsd

where Import01.xsd, Import02.xsd, Include01.xsd and Include02.xsd are XSD files referenced via import and include elements in MySchema.xsd.

Published Wednesday, February 20, 2008 7:30 PM by mapo

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# MSDN Blog Postings » XSD.exe: Error generating classes for schema 'MySchema.xsd'. - The element 'http://schemas.DomainName.com/types:MyType' is missing.

# re: XSD.exe: Error generating classes for schema 'MySchema.xsd'. - The element 'http://schemas.DomainName.com/types:MyType' is missing.

Wednesday, August 20, 2008 10:46 PM by Sam

Thanks man, you rock!  This was kicking my tail for the last 30 minutes.

# re: XSD.exe: Error generating classes for schema 'MySchema.xsd'. - The element 'http://schemas.DomainName.com/types:MyType' is missing.

Thursday, June 18, 2009 6:02 AM by Pat

Thanks a lot.

I was wasting my time since a long time

Great job dude :)

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker