meetpd
asked on
Problem creating C# class file with XSD.exe for XML Schema
Hi,
I am getting following error, when I try to run XSD.exe for a schema.
- Error generating code for DataSet ''.
- Unable to convert input xml file content to a DataSet. Undefined data type:
'token'.
- Undefined data type: 'token'.
Can you please suggest what needs to be done to generate the class file for that schema?
I am looking for: 1) Other tool like XSD.exe which works fine. or 2) how to resolve the above error message for XSD.exe
I am getting following error, when I try to run XSD.exe for a schema.
- Error generating code for DataSet ''.
- Unable to convert input xml file content to a DataSet. Undefined data type:
'token'.
- Undefined data type: 'token'.
Can you please suggest what needs to be done to generate the class file for that schema?
I am looking for: 1) Other tool like XSD.exe which works fine. or 2) how to resolve the above error message for XSD.exe
It sounds as if your schema is incorrect. Have you tried validating it with an XML Schema for XML Schemas?
ASKER
The schema is given by government agency. Hence we can safely assume it be to be correct.
OK, may I ask what schema it is or is that confidential? It is just that the word "token" is not defined, yet in schemas there is a construct called "#token" and it might just be that the # is missing.
ASKER
I can share the file - no problem with that. Only thing is I am unable to upload it even after zipping it as it does not seem to allow XSD file. Do you know better way to share that file for you to see?
Yes, E-mail it to me. My E-Mail is in the profile.
ASKER
Thanks!
I have send you an email for this. Email has subjectline: XML File Schema - As discussed on EE
I have send you an email for this. Email has subjectline: XML File Schema - As discussed on EE
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.