Error: Can only generate one of classes or datasets

G

Guest

Sorry for post this again (and I do not know this is the right group).

I got following error when I do:

D:\test\Dot Net\Test>xsd XMLTestConfigSchema.xsd
Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Error: Can only generate one of classes or datasets.

If you would like more help, please type "xsd /?".

D:\test\Dot Net\Test>

Here is the content of XMLTestConfigSchema.xsd

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://tempuri.org/po.xsd"
xmlns="http://tempuri.org/po.xsd" elementFormDefault="qualified"><xs:simpleType name="simpleType1"><xs:restriction base="xs:string" /></xs:simpleType><xs:element name="element1" type="simpleType1"></xs:element></xs:schema>

Why?

thx.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top