Questions tagged [xsd.exe]

The XML Schema Definition (Xsd.exe) tool generates XML schema or common language runtime classes from XDR, XML, and XSD files, or from classes in a runtime assembly. It is a part of the Microsoft .NET SDK.

References

346 questions
0
votes
2 answers

XSD from variable number of XML elements

I'm creating a xml document based on some conditions in my app. the number of elements inside my xml is always variable. For instance, one time it may look like:
Djave
  • 277
  • 1
  • 5
  • 14
0
votes
3 answers

Clarification in getting the desired Directory

In My Windows based project set, of XML files are located at "c:\TestProj\XmlSource". My mission is to programmatically create schema files for those xml files. I am executing the code as follow: string directoryName = @"c:\TestProj\XmlSource";…
user146584
  • 701
  • 2
  • 11
  • 18
0
votes
1 answer

XML complexType with element that ends up as "XmlElement"

In my XSD, I have something similar to this:
Paul
  • 9,409
  • 13
  • 64
  • 113
0
votes
3 answers

Free tool / extension to convert XSD to C# with working annotations

Is there any tool or version of XSD2Code or xsd.exe that can generate C# entities together WITH comments from XSD2Code? Both XSD2Code and xsd.exe ignore annotations (for XSD2Code, EnableSummaryComment just doesn't work well) and I don't want to…
Mirek
  • 4,013
  • 2
  • 32
  • 47
0
votes
1 answer

Nightmare trying to generate code from XSD

Halo I'm sure this question has been asked many times in the past, but I'm having a nightmare with it. I have a set of XSD schemas with a tonne of complex types. One of them is this:
Paul
  • 9,409
  • 13
  • 64
  • 113
0
votes
1 answer

XSD code generator empty nodes

I have been provided an XSD file that I have generated code from using XSD.exe but it is not functioning in the way that I'm expecting.
Mr Wilde
  • 649
  • 8
  • 19
0
votes
1 answer

How to create xsd for an object

I have an method in which I need to pass parameters value some like this in the publish methods. facebookclient. publish("me/events", FacebookType.class,Parameter.with("name", "Party")); Instead of passing it as three parameters, I am trying to…
0
votes
1 answer

Autogenerating properties attributes when creating classes with xsd.exe

I'm using xsd.exe for a long time but right now I would like to go one step further and make it generate property and class attributes automatically from schema, or at least make it ignore attributes I put by myself into a code. Thanks in advance!
Random
  • 4,519
  • 2
  • 38
  • 46
0
votes
1 answer

Cannot execute xsd.exe on xslt.xsd

Visual Studio provides a schema definition for XSLT under "C:\Program Files\Microsoft Visual Studio 10.0\Xml\Schemas\xslt.xsd". However, when trying to generate C# classes based on the .xsd xsd "C:\Program Files\Microsoft Visual Studio…
devio
  • 36,858
  • 7
  • 80
  • 143
0
votes
1 answer

How to create C# class from Multiple XML files

I am looking for a tool (preferably freeware) which can help me to create C# DTOs(classes) from multiple xml files. Some of these xml files contains same complex type so to avoid duplication of classes i have to make one XSD from multiple files. I…
Mubashar
  • 12,300
  • 11
  • 66
  • 95
-1
votes
2 answers

During C# deserialization, getting System.InvalidOperationException: < xmlns=''> was not expected

I'm new to XMLdeserialization. I used xsd.exe to generate object classes for performing a deserialization on an existing XML file. When I run my solution below, I get the error System.InvalidOperationException: < xmlns=''> was not expected on…
-1
votes
1 answer

Generate xml message to send over tcp

I have classes generated from xsd that i would like to use to create an xml to send over the wire. I just want to create the document in memory, convert it to string/byte[] and send it. I was under the impression that once the classes are…
Jason
  • 2,147
  • 6
  • 32
  • 40
-1
votes
1 answer

import in XSD and its implementation

I have 2 separate XSDs with some common attributes. I want to create another XSD and put all my common attributes in the separate XSD and import them in the 2 XSDs i have already rather than repeating them or duplicating them in both the XSDs. Is…
nisha
  • 703
  • 2
  • 14
  • 28
-2
votes
1 answer

How to auto-generate code in specific .NET language based on an XSD/XML file

I need to serialize data from an XML file(s) to an object(s). This objects class is defined in the XML. There are many different XML files and I would like to auto-generate the code defining the class to save time and avoid making human mistake.…
Merav Kochavi
  • 4,223
  • 2
  • 32
  • 37
-2
votes
4 answers

How do I read XML using only type safe C# classes? What aspect of XML must I learn?

I've seen a technique of reading and writing XML to disk using only C# class names an no obvious Attributes[]. What is this called, and how do I apply it to a data set that looks like this:
makerofthings7
  • 60,103
  • 53
  • 215
  • 448
1 2 3
23
24