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

Create assembly with datacontracts of WCF service

Here is my issue: in a project I have to consume 3 third-party wcf services. 2 of those contain the same objects and largely the same methods. The user's role within the application determines which service to use. For example: Let's say the 2…
DirkV
  • 353
  • 1
  • 4
  • 16
0
votes
2 answers

Error in generating C# classes using xsd.exe

I have XML file from which I want to make C# classes by using xsd.exe tool. But upon running the tool, it gives following error Cannot add a nested relation or an element column to a table containing a simplecontent column I am using this…
Saad Qureshi
  • 389
  • 4
  • 19
0
votes
1 answer

xsd fixed into C# const

I need to define a field in an xsd file, that, when converted in C# classes using the XSD Tool, will turn into a const field (or something similar), for the purpose of not allowing any other values to be stored in the field. At the moment, I have…
Alex Barac
  • 632
  • 4
  • 12
0
votes
1 answer

C# XMl Deserialisation with non existing Paths

I've with xsd.exe created the class for my XML. In the XML (SEPA camt.053) are multiply nested Nodes that have minOccurs = 0. I navigate to the node like this: entry.NtryDtls[0].TxDtls[0].RltdPties.CdtrAcct.Id.Item In this Path RltdPties, CdtrAcct…
Francesco
  • 127
  • 1
  • 2
  • 9
0
votes
1 answer

DataSet Classes generated by xsd.exe generate a huge number of warnings

I've got several hundred warnings due to missing xml comments from a single DataSet generated from a single .xsd file. Since this is an auto generated file manually editing them isn't a good idea. Is there any way to either disable the warning for…
0
votes
1 answer

How to use XmlDocument object instead of reading XML file from drive?

I didn't know that I can use XSD schema to serialize received XML file. I used xsd.exe to generate cs class from XSD file and now I need to use that class to get data in class properties but I miss one thing and I need help. This is the…
1110
  • 7,829
  • 55
  • 176
  • 334
0
votes
1 answer

Deserialise XML response from server

I want to deserialise an object. I saw the following code in msdn.com: private void DeserializeObject(string filename) { Debug.WriteLine("Reading with XmlReader"); // Create an instance of the XmlSerializer specifying type and…
kshitijgandhi
  • 1,532
  • 1
  • 16
  • 28
0
votes
1 answer

Xml in Dot net 3.5:how to load xml document into object of class generated from schema?

I have defined schema for xml in file "packetTemplate.xsd".Using ms tool "xsd.exe" i have generated class "PacketTemplate" corresponding to schema.Does dot net provides api that can load xml document by refering to file and returns object of class…
Maddy.Shik
  • 6,609
  • 18
  • 69
  • 98
0
votes
2 answers

xsd.exe whitespace and pattern restriction

I have an xsd file that I have used to generate XML entity classes with xsd.exe. The issue I am encountering is spaces appended to a numeric field. The specific section of the schema looks like this:
kakridge
  • 2,153
  • 1
  • 17
  • 27
0
votes
1 answer

XSD.exe (.Net 2.0) download?

I need an older version of XSD.exe (comes with VS 2005), preferably a version compatible with .Net 2.0, to generate classes. Could somebody provide an existing (official) link or possibly upload a copy?
0
votes
2 answers

.Net class generation from XSD with union

I've been working to create classes representing the HR-Xml 3 spec for the stand-along packages related to Screening. I've had a couple of problems, but currently I believe the main problem is the lack of support within xsd.exe for the xsd:union…
Matt Klinker
  • 773
  • 5
  • 18
0
votes
1 answer

Convert STAR XSD to C# classes

I have been trying to create a STAR standards compliant webservice (ASMX of course) . My service will accept a the an object "ProcessPartsActivity" which is defined as an XSD "ProcessPartsActivity.xsd". STAR XSD: STAR XSD DownLoad This XSD is…
Lin
  • 633
  • 8
  • 26
0
votes
2 answers

How to include CodeSynthesis-XSD into own application?

1.) How can i include the CodeSynthesis-XSD Code-generation into my application, so when i give the application (QT in Visual Studio 10) to someone other he doesnt need to install Code-Synthesis? 2.) And how can i specify the output-directory of…
Postback
  • 619
  • 2
  • 9
  • 27
0
votes
2 answers

Deserialize a XML fragment to class that has been generated by xsd.exe

I have a xml file that I want to read it and then interpret and convert to respective classes that were generated from xsd tool. Here are the steps which I am trying: I created a XSD file. Converted the respective xsd file into respective set of…
Devesh
  • 396
  • 1
  • 4
  • 23
0
votes
0 answers

Multiple elements with the same type only generates one root

I have 3 different possible root-elements with different names, let's call them foo, bar and baz. All these possible root-elements have the same type, simply called fooBarOrBazType. Now when I generate my class from the XSD's, only the first element…
Davio
  • 4,609
  • 2
  • 31
  • 58