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
0
votes
1 answer

Generate C# class from XSD (xhtml.blkstruct.class)

I have an xsd file, simplified as below with an element referencing the xhtml.BlkStruct.class. I have tried xsd.exe and xsd2code trying to generate a C# class from it, but I am always getting errors.
nogenius
  • 574
  • 1
  • 6
  • 18
0
votes
1 answer

Create C# class from reqif.xsd

I am trying to generate a C# class from the following ReqIF XSD file. I have tried with xsd.exe which failed and now also with xsd2code which fails with the following error message (translation: reference to undeclared attribute group): Xsd2Code…
nogenius
  • 574
  • 1
  • 6
  • 18
0
votes
3 answers

The specified type was not recognized: name='CD', namespace='urn:hl7-org:v3

I am trying to deserialize an XML file using a c# class that was automatically generated. When I tried to Deserialize the xml file, I am getting an exception 'The specified type was not recognized.' Has anyone experienced this issue before? Your…
Denes
  • 47
  • 3
  • 11
0
votes
0 answers

Deserializing XML data into .Net objects create objects but don't load object properties' values

I use the following method to deserialize the objects data from xml. The variable exportExclusions got created with the right number of child objects but all of them have null value…
Ebeid ElSayed
  • 1,126
  • 2
  • 15
  • 32
0
votes
1 answer

The global element 'XXX' has already been declared

I'm using Xsd2Code in order to build classes from the folowing shema: http://www.isotc211.org/2005/gmd/ (gmd.xsd) howewer it keeps throwing the folowing error: Error: The global element 'http://www.isotc211.org/2005/gmd:EX_TemporalExtent' has…
Sinnerman
  • 23
  • 4
0
votes
1 answer

Update XSD Designer.cs to get specific data in UPPER case

How can I enforce in the XSD file to get any string variable always in UPPER case at code level? To implement this I've done changes in the designer.cs file in the get property of the variable because this variable is used at number of places in the…
Geeky Ninja
  • 6,002
  • 8
  • 41
  • 54
0
votes
0 answers

Generate C# Class with svcutil.exe against xsd using External tools in VS 2012

I have created a C# Data Contract class against XSD and used my WCF service. And I have setup the xsd.exe using Visual Studio External Tools like below, Use bat file with: call "C:\Program Files (x86)\Microsoft Visual Studio…
SJ Alex
  • 149
  • 3
  • 12
0
votes
1 answer

Recursive XSD Help

i'm trying to learn a little bit XSD and I'm trying to create a XSD for this xml: ... so there's an element, which is an abstract complex type. Every element have…
Alon Gubkin
  • 56,458
  • 54
  • 195
  • 288
0
votes
2 answers

initializing a property inside a constructor when deserializing

I use Xsd2Code to generate classes. However one of the classes causes me a problem with its constructor, because of the loop and throws StackOverflowException. [System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code",…
v.g.
  • 1,076
  • 5
  • 19
  • 38
0
votes
0 answers

XSD with length value 0 isn't being honored

I have a question with an XSD that I am working with. I have the following block:
Sean P
  • 949
  • 4
  • 22
  • 41
0
votes
0 answers

Xsd2Code - Using element to join schemas

I'm a long-time programmer but fairly new to C#, and XML (unfortunately at the same time). As part of the project I'm working on I have to generate xml files representing invoices according to the GS1 standard. The root xsd file contains the…
Wayne Ivory
  • 321
  • 2
  • 8
0
votes
1 answer

Disable only XmlOrderAttribute in xsd2Code

I'm using xsd2Code and I want to disable xml order while keeping the attributes. How can I do that ?
Pak
  • 2,639
  • 2
  • 21
  • 27
0
votes
1 answer

Create XML using an .xsd file inC#

How to create an XML file using an XSD file in C#? I want to write a program that will fetch an XSD file, fill the elements and save it into an XML file.
0
votes
1 answer

ListBox SelectedItem doesn't update DataTemplate

Following Problem: I've got a DataModel containing a list of objects and a reference to the selected object inside the List (among other things) Everything is working fine - if I select s.th. in the ListBox it is also available at the SelectedItem -…
Philipp Wendt
  • 2,538
  • 1
  • 15
  • 17
0
votes
1 answer

C# Serializer class Encoding Issue

I'm really not understanding where these characters are coming from. I am populating a custom class object and then serializing it to disk and getting strange characters in the result like…
kstubs
  • 808
  • 4
  • 18