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

xsd2Code Deserialize not working

I'm using XSD2Code in order to serialize and deserialize an XML document. For some reason I'm not getting Deserialize method in my intellisense. When I look at the code generated by XSD2Code, I can see these methods: public static SOMEOBJect…
Nil Pun
  • 17,035
  • 39
  • 172
  • 294
0
votes
0 answers

How do we call one element into other in XSLT?

I am new to stackverflow and hoping I will get right direction for my current issue. I have XSD input and i am writing xslt for this input and was trying to call one element into other one's and for some reason it is not working. following is my XSD…
user15645394
0
votes
1 answer

XSD2Code++, from XML enum to C# enum with not sequential values

My project uses XSD2Code++ to generate a large amount of C# classes and enums from XSD source files. By default, the tool generates C# enums as in the following example: From XSD definition:
danfic
  • 1
  • 1
0
votes
1 answer

XmlAnyElementAttribute: How to add items to List for XSD element in xsd2code created class?

I am using xsd2code in order to create C# classes which can serialize/deserialize XML files based on a set of XSD files. One XSD file contains an element:
Thomas853
  • 517
  • 1
  • 7
  • 12
0
votes
0 answers

XSD exe multiple classes with same name separation

When using XSD.exe to generate classes from XSD files, a certain problem arises for the thing I am trying to do. I have several (~10) XSD files that are dependent on each other, top-down, with some cross relations as well. These files can be…
Jurjen
  • 1
  • 3
0
votes
1 answer

Cannot create c# classes from XSD file

I have some XSD schema files which can be found here .Its the bottom zip file named CR-27-EFK-xsd. When I try to create classes for example for ef15.xsd file with Xsd2Code it gives me Error: Type'http://www.icisnet.gr/emcs/v1.03/types:DateType' is…
rippergr
  • 182
  • 2
  • 20
0
votes
0 answers

Is there a way using xsd or xsd2Code to generate separate xml element properties instead of collective ones

I am trying to use xsd or xsd2code to generate a c# class from an XSD file. The XSD file is from a third party, and cannot be modified. It does generate classes, but they include blocks like this. [XmlElement("ABOUT_VERSIONS",…
athelred
  • 21
  • 2
0
votes
2 answers

c++/Parsing: error: expected primary-expression before '->' token .how to solve this error..?

I am new to c++/parsing, I convert the xsd file into an auto generated cpp and header file. When I try to access the element (member functions) of the xml file (xmlfilename) I am getting the error "Primary-expression missing before'->' token". My…
Balamurugan
  • 2,259
  • 8
  • 33
  • 48
0
votes
2 answers

xsd2Code++ redefine tag deserialization not working

I'm trying to generate some classes from xsd definitions with a xsd:redefine tag on Visual Studio 2019, but it enters an infinite loop on Xsd2Code++ Version 5.0.0.47. This is a simplification of my example: File Cabecera.xsd:
Foltak
  • 11
  • 2
0
votes
1 answer

xsd - circular dependencies between complex types

I am looking at some of the xsd files available here: https://www.isotc211.org/2005/gmd/ I see this in https://www.isotc211.org/2005/gmd/citation.xsd
chris
  • 398
  • 2
  • 11
0
votes
1 answer

XSD ambiguities, multiple compositors in the same complex type

XSD complex types are, well... complex Some facts first: elements can have minOccurs, maxOccurs and can be childs compositors (choice/all/sequence) can have their own minOccurs/maxOccurs multiple compositors can be used in a row in the same complex…
chris
  • 398
  • 2
  • 11
0
votes
0 answers

XSD - Validate an element for 1 of 2 formats based on value

Im trying to write a schema for an element that can be in 1 of 2 formats. here is the XML example XML
0
votes
1 answer

Xml deserialization returns empty array even though POCO has right xml attributes generated from xsd2code++ tool

I am using XSD2Code++ 2019 tool for visual studio to generate POCOs from aset of 5 xsds. I have added the POCO class below. I see that it has the right xml decorators for it to serialize properly. But I really fail to understand or figure out why…
Nemo
  • 1
  • 1
0
votes
1 answer

What is the best tool for generating C# classes out of XSD?

Is there a modern and regularly updated tool for generating C# v.7+ classes of XSD? The only tool I know is xsd2code but it is not free and its last update, according to the official site was "Update 4.4 (June 05, 2017)"
nmrlqa4
  • 659
  • 1
  • 9
  • 32
0
votes
1 answer

Extract enumeration values from XSD file?

I am trying to extract enumeration values from an xsd file but am failing and the only code to assist is below, which only gets me the numeric value. XSD File:
Donald N. Mafa
  • 5,131
  • 10
  • 39
  • 56