Questions tagged [xsd2code]

Xsd2Code is a CSharp or Visual Basic Business Entity class Generator from XSD schema.

Xsd2Code is a CSharp or Visual Basic Business Entity class Generator from XSD schema.

Available for visual studio

(Pro, Ent) 2017, 2015, 2013, 2012, 2010 & command line Frameworks supported

.Net 2.0, 4.6x, Net Code 3.0, .Net Standard, Xamarin Supported languages

100% native .Net C #, VB XML & JSON serialization

Generates the code to transform objects into either XML or JSON Customizable Code

119 questions
52
votes
5 answers

How to convert XSD to Python Class

I just want to know if there is a program that can convert an XSD file to a Python class as JAXB does for Java?
Kortex786
  • 1,089
  • 1
  • 8
  • 10
18
votes
4 answers

XSDObjectGen.exe vs XSD.exe

Can anyone tell me what is the difference between XSDObjectGen.exe & XSD.exe? Is there any way to make XSDObjectGen.exe work in dot net 2.0?
Nimesh Madhavan
  • 6,290
  • 6
  • 44
  • 55
12
votes
1 answer

Can we control type name in xsd.exe tool generated class

xsd.exe tool generates classes for given xsd file. It follows a pattern for naming the type. For example, xsd.exe /c…
Manikandan
  • 673
  • 3
  • 12
  • 26
10
votes
2 answers

How to use class generated by Xsd2Code

I am new to XML coding. I have an XML file with which I generated the Schema file using XSD tool, then generated the class file using Xsd2Code tool. Now I have a file called Timesheet.Designer.cs with all the class information and Serialization…
user843813
  • 111
  • 1
  • 1
  • 6
7
votes
1 answer

In Visual Studio, can I make one file run another's custom tool? (in this case using Xsd2Code)

I am trying to work out if it is possible, when using a Custom Tool in Visual Studio, to have a change in the contents of one file, trigger the Custom Tool of another. My scenario is this: In a Visual Studio C# project, I have an "master.xsd" xml…
Rob Levine
  • 40,328
  • 13
  • 85
  • 111
6
votes
1 answer

Using XSD2CODE with multiple schema files

I am using XSD2CODE with Visual Studio 2010. I know I can right click on a schema (XSD) file and generate the c# class from it. What I would like to know is how can I generate the C# class when I have two schema files for a single XML file? More…
JonnyBoats
  • 5,177
  • 1
  • 36
  • 60
5
votes
4 answers

Xsd2Code Plugin in VS2015

I have downloaded and installed Xsd2Code plugin. But in the visual studio, when i right click on the xsd file, i am not able to see the option "Run Xsd2Code generation". I am struggling with this. Please help me guys.
Sravanthi V
  • 51
  • 1
  • 1
  • 3
4
votes
3 answers

Deserializing complex xsd schemas (containing substitutiongroup elements for inheritance) with xsd.exe or xsd2code

I have problems with deserializing/serializing some xsd schemas, specially with substitution group elements (substitutiongroup) within. What I want to do is to generate C# classes from xsd schemas, then handle with object and later serialize them…
user615993
  • 185
  • 3
  • 15
4
votes
1 answer

Loading XML with code, generated by XSD2Code

I am having trouble to get the code, generated by XSD2Code, to load a supposedly valid xml file. My test case involves generating C# code for the KML version 2.2.0 schema and trying to load a sample KML file with it. The exception occuring during…
Simon
  • 428
  • 5
  • 19
4
votes
1 answer

How can I get automatic properties in my class generated from XSD?

Is there any way to get automatic properties in my class file that's generated from xsd? I am using Xsd2code and have tried the following command. c:\xsd2code q2test.xsd /n ContractXml /pl Net35 /ap[+] /xa[+] It doesn't generate automatic…
abhi
  • 3,082
  • 6
  • 47
  • 73
4
votes
1 answer

What happened to Xsd2Code class generator Add-in for Visual Studio?

I am using Version 3.4 and it is no longer working and the link on codeplex indicates, "This project is not yet published." Maybe an exception is thrown in the check for updates because the Generate button is not doing anything. Anyone know what…
Bama91
  • 884
  • 2
  • 10
  • 24
3
votes
2 answers

Is it possible to use XSD tool from Mac OS?

I just started a project where I need to create a class to map all XML attributes from an XSD file. For those ones with a few attributes, it can be done manually. For those with a lot of attributes it will take some time to create the class. I found…
MikePR
  • 2,786
  • 5
  • 31
  • 64
3
votes
2 answers

xsd2code - problem deserializing xml file

In the past I created own xml serialization class manually. But now I would like to do it automatically. So I found XSD tool by Microsoft. Unfortunately I face a bug with this utility (CS030 etc.). But next I found looking great open source tool…
binball
  • 2,255
  • 4
  • 30
  • 34
3
votes
2 answers
3
votes
1 answer

How to impose minute restrictions on xsd:dateTime?

I have read that we can use minInclusive and maxInclusive restrictions on xsd:datetime fields. But how can I make sure that my dateTime field shall not occur more than 5 minutes into the future? I know how to handle it in java . But I want the…
1
2 3 4 5 6 7 8