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

Custom element type in XSD

For SOAP webservice i have a response bean as @XmlRootElement(name = "AddResponse") public class AddResponse { Integer addResult; /** * @return the addResult */ @XmlElement(name = "AddResult") public Integer…
user2779544
  • 429
  • 1
  • 8
  • 24
0
votes
2 answers

How to configure XSD to map XML to POJO with different name

We have a requirement where XML tags are not similar to java POJO attributes. We need a solution to map XML tags to POJO with different name. Here is the same XML, value Here is the POJO class, public…
0
votes
2 answers

Looking for generator of Python <--> XML bindings

I'm looking for a generator which takes schema file(s) (XSD) on input and generates Python code (bindings) able to transform xml file to Python objects and the other way around. It should be customizable so that I could plug in my code dealing with…
Piotr Dobrogost
  • 41,292
  • 40
  • 236
  • 366
0
votes
0 answers

XML deserialization in ASP.Net Web API: null values

I'm writing a web service to deserialize XML files, map them to POCOs and save them to a database. I have a XSD defining the model, and use xsd2code to generate the models. Here's an example. In my XSD definition, I have the following…
AdSNobrega
  • 23
  • 1
  • 6
0
votes
0 answers

XML from XSD strange values

I have an XSD file and I used the xsd 2 code tool to generate the code for this XSD. When the XML file first create (before I give values) it contains some elements and values. My question is where does those values come from and how can I just…
rippergr
  • 182
  • 2
  • 20
0
votes
0 answers

XSD2CODE - Remove xsi:type tag from XML

I'm serializing an object automatically created by Xsd2Code, the resulting XML has xsi:type tags under each of the xml values: 1 I need to remove these and if doing that manually i would normally just change the…
Dan Hall
  • 1,474
  • 2
  • 18
  • 43
0
votes
1 answer

XSD class null reference check

I have big C# class which is generated from XSD schema. There is any possible ways to use "?.' safe operator in .NET Framework 4.5.1 with out upgrading the .NET framework version. Instead of writing null check for each object.
0
votes
3 answers

xsd2code++ restrictions not generated

I tried to generate C#-Classes from XSD using XSD2Code++ (V4.2.0.31, licensed version). The Code generation is working, but it is omitting the restrictions. XSD:
0
votes
1 answer

xsd2code generated throws error from XmlChoiceIdentifierAttribute

I have this part of and .xsd:
Benji
  • 615
  • 5
  • 11
  • 25
0
votes
1 answer

Unable to deserialize polymorphic list from xml

I deserialize from an xml file using XmlSerializer over classes generated by Xsd2Code from an xsd file with elements extending a base element. Here is a simplified example:
Dondey
  • 267
  • 4
  • 13
0
votes
1 answer

How to Generate Strongly Typed .NET Request Object from XSD in .NET

I've been given a number of XSD files - they are HUGE - for an insurance pricing engine, so as you can imagine, contain lots of nested complex types. Person, Address, Vehicles, Car Alarm, Speeding Convictions etc etc. Here's a subset containing a …
reach4thelasers
  • 26,181
  • 22
  • 92
  • 123
0
votes
1 answer

Generating C# classes from XSD - schema elements are ignored

I generate C# classes for this XSD schema using xsd.exe or Xsd2Code:
alxersov
  • 137
  • 1
  • 2
  • 8
0
votes
1 answer

Serialize object to XML without empty elements and elements with empty children

I need to serialize object into XML request, but the service, I am calling, do not accept empty elements. I generated contract classes from XSDs and the request structure looks like follows: /* Generated contracts - simplified & without XML…
mimo
  • 6,221
  • 7
  • 42
  • 50
0
votes
1 answer

DataContractSerializer.ReadObject() fails to create object when used with SvcUtils.exe

I ran SvcUtil.exe against XSD file to generate class. Then tried to create Object out of XML using following line. I get error shown below. Please see the detailed code below. PersonType prs = (PersonType)xs.ReadObject(new…
0
votes
1 answer

XSD2Code not generation optional Enum

I'm running into a rather large problem generating C# classes from several XSD's. During serialization an Enum-member get's the wrong value. The property isn't present in the XML i'm serializing, so I would expect it to be NULL or '0', but instead…
Rob
  • 6,731
  • 12
  • 52
  • 90