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
1
vote
1 answer

Retrieving XML data and XmlSerializer

I have started using Xsd2Code and to date have been deserializing XML straight from an actual file. What I need to do now is deserialize the xml from a local variable. Here's a code snippet. using (FileStream getResponseDataFromFile = new FileStream…
Ross
  • 325
  • 1
  • 3
  • 18
1
vote
0 answers

How to eliminate duplicated classes generated from XSD imported schemes?

I need to generate csharp classes from a bunch of XSD files, the problem I'm coming across now is there're lots duplicated classes generated from the imported schemes, this is quite annoying. I tried wscf.blue, xsd2code, but cannot solve it. For…
Elaine
  • 1,288
  • 5
  • 17
  • 35
1
vote
1 answer

Xsd2code SimpleContent not working

so far everything went smoothly but when I tried this xsd errors came out. I have simple example:
Maximus
  • 3,458
  • 3
  • 16
  • 27
1
vote
1 answer

XSD Class generators: keeping track of element order

I got the following complex type within my XSD schema
mbue
  • 1,591
  • 2
  • 14
  • 34
1
vote
1 answer

Deserializing XML element containing namespace

I have received an XSD schema, from which I have created object using xsd2code. The next step was to deserialize sample XML file using the object generated above. The problem is when I try to deserialize object, there is a problem with namespace of…
mko
  • 6,638
  • 12
  • 67
  • 118
1
vote
0 answers

Can I use wsdl2php on a plain XSD document?

I'm trying to generate classes for the OVF xsd. I've found a bunch of incomplete/broken projects. I was thinking that wsdl2php might work, but it looks like it expects a WSDLdocument and not an XSD. Is there a way to make it generate the classes…
Gary Richardson
  • 16,081
  • 10
  • 53
  • 48
1
vote
0 answers

need to edit xsd to get a specific format

I'm using xsd2code and my xsd have this
kooshka
  • 871
  • 1
  • 9
  • 19
1
vote
1 answer

XSD2Code, Is it possible to serialize inherited properties from a parent abstract class?

I have a XSD2Code generated Class and all is working. However I want to generate and store IDs as GUIDs on all Complex class types ie Order, OrderItem etc. to facilitate CRUD from the object Hierarchy. So instead of adding an ID element to every…
EdB
  • 449
  • 6
  • 21
1
vote
2 answers

How to make xsd2code create XmlArrayAttribute and XmlArrayItemAttribute without making an extra class

I have an xsd that I want to look a certain way serialized. I can achieve what I want with the following but the problem is, xsd2code generates an extra class that's completely unused anywhere. Am I doing it wrong? Is there another trick I am…
EbbnFlow
  • 653
  • 1
  • 9
  • 17
1
vote
1 answer

Create Java Class from XSD at run time

I have a requirement in which my front-end screen creates an XSD at run time. After which i need to create Java Classes for the same then zip it into an war file. all this needs to be done at run time and within JVM. I have researched on this and…
Fr_nkenstien
  • 1,923
  • 7
  • 33
  • 66
1
vote
3 answers

Xsd2Code and xmldsig

I have a problem with generating code from xsd with Xsd2Code. The xsd looks like this:
redman
  • 2,115
  • 5
  • 32
  • 59
1
vote
1 answer

Creating an Array with xsd2Code and c#

I'm using an .xsd schema like this
Master117
  • 660
  • 6
  • 21
0
votes
1 answer

Access to class generated with XSD

I've issue with access to property of my generated class. This is my xml:
Hyen
  • 67
  • 2
  • 6
0
votes
2 answers

RestSharp consuming SubSonic REST Api

I am currently writing a c# library to use cross platform on windows, iOS, Android. I am consuming a Rest service and having some trouble with the objects being returned from the response. I am using RestSharp for the api calls. I used Xsd2Code.NET…
0
votes
0 answers

Redefine Element inside Complex Type

I am working with an xsd which I'm expanding on: "http://opcfoundation.org/UA/ModelDesign.xsd". The relevant part I'm currently stuck on is below. I have a new ComplexType ExtendedObjectDesign in my local XSD that is equivalent to an "ObjectDesign"…
HelpfulPaul
  • 68
  • 1
  • 4