Click here to Skip to main content
12,552,909 members (59,277 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# UI convert xsd
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
Posted 13-Jun-12 22:56pm
Updated 13-Jun-12 23:43pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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
rk_prabakar 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161021.1 | Last Updated 14 Jun 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100