Assuming that you have already created and filled a DataSet "ds" somewhere
in your program, issue this command after that:
ds.WriteXmlSchema("Filename")
Then, bring "filename".xsd into the project, and you can use it as needed.
Chuck
"Babu Mannaravalappil" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi all,
>
> I apologize for posting this question on two groups. I did not know
> which one out of "XML" and "ADONET" groups, should I post this.
>
> I would like to create an xsd file out of an existing dataset.cs file
> that can be visually manipulated in the VS.NET Dataset Designer wizard
> in VS.NET 2003 with .NET 1.1 and C#.
>
> Here is the issue in more detail:
>
> Using the wizard I can drag and drop tables on to the dataset designer
> suface, set relations between tables etc. Now, this wizard generates
> a typed DataSet class for me which is remarkable and beautiful. I
> love Visual Studio. But here is my problem. I would like to cusomize
> some of the characteristics of my dataset via editing the ".cs" file
> that the wizard created for me. But if and when I modify anything in
> the xsd designer surface, that overwrites the class file.
>
> Is there a way that I can use the class file as a starting point and
> reverse engineer to create an xsd file that I can just double click
> and open in the dataset designer? That way, I think I can keep my
> modifications to the class file and still have the visual designer
> feature for my class.
>
> How can I do it? Or can I do it at all?
>
> Babu.
|