Click here to Skip to main content
15,906,625 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Actually i was assigned with a task to identify

Whether the XSD UI file can be converted into C# UI solution

I googled a lot regarding this. But i could not find a dime about this.

So it will be more helpful to know if it is applicable to do so or not

If applicable means how?

What i did is

1) I downloaded a sample xsd file from internet

2) Then i passed the xsd file in Visual Studio 10.0 command prompt as
xsd.exe -c -l:c# D:\sample.xsd

3) The sample.xsd file is converted into sample.cs in the local drive.

4) Then i do not know what should i do with that file.

What I have done is correct or am i missing anything or should have to do something additional in the process uh?

What i want is

create a sample ui with two text box and one command button through XSD file and perform simple addition. How to achieve this?

So please somebody help me

Thanks in advance.

With regards
Updated 13-Jun-12 23:43pm

1 solution

Answer is with you but I don't under stand what was your requirement.

That CS file is Object representation of XSD file, so you can create an object using that CS file and if you will serialize that object and will come with XML file then that XML file should be validated against XSD file.

Sorry, you have not mentioned what you want to achieve using that C# code.

Let us know so, we can provide you a more detailed answer.

Rushikesh Joshi
Share this answer
♥…ЯҠ…♥ 14-Jun-12 5:42am    
Actually i want to create a sample ui with two text box and one command button through XSD file. How to achieve this?
Joshi, Rushikesh 14-Jun-12 5:47am    
Okay then in that case xsd.exe should not help or any sample XSD from google should not help as well.

You should start working on WPF and can get some way to generate XAML files from schema.

I never worked in WPF so not possible to provide you a full solution. but You should think in WPF / XMAL direction.

Before XAML there was XForm available by W3 consortium, which generating Web Form on client browser from some XML file but now that is now not in scope or not lot of folks working on that.

Rushikesh Joshi

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900