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
4 answers

How do I deserialize this simple xml config with the XmlSerializer class?

I have the following xml I'd like to deserialize into a class String1 String2 I am trying to serialize it into the following class: …
Peter Walke
  • 2,497
  • 6
  • 33
  • 50
0
votes
0 answers

Split a cs file into several files; one file per class

Is there any way to split a cs file into several files? I mean, split a cs generated by xsd tool into one file per class without use the xsd tool again.
MirlvsMaximvs
  • 1,453
  • 1
  • 24
  • 34
0
votes
0 answers

Generate C# Class with svcutil.exe against xsd using External tools in VS 2012

I have created a C# Data Contract class against XSD and used my WCF service. And I have setup the xsd.exe using Visual Studio External Tools like below, Use bat file with: call "C:\Program Files (x86)\Microsoft Visual Studio…
SJ Alex
  • 149
  • 3
  • 12
0
votes
0 answers

Why does this code cause xsd.exe error, "You must implement a default accessor on System.Configuration.ConfigurationLockCollection"?

Hello StackOverFlow users, Iam trying to create an XSD from a dll that i created, but when i try to generate the XSD i get the following error message: You must implement a default accessor on System.Configuration.ConfigurationLockCollection because…
NightBits
  • 27
  • 4
0
votes
1 answer

How to make converted classes from an XSD file reside in their own class files?

I using the XSD.exe provided in Visual Studio Tools to generate classes from an XSD file. Currently all of the classes are generated in 1 CS file. Is it possible to have each class generated into separate CS files?
tdbeckett
  • 618
  • 8
  • 19
0
votes
1 answer

how to: re-assemble machine generated classes from xsd files to their original nested state

I'm working in Visual Studio 2008 using c#. Let's say I have 2 xsd files e.g "Envelope.xsd" and "Body.xsd" I create 2 sets of classes by running xsd.exe, creating something like "Envelope.cs" and "Body.cs", so far so good. I can't figure out how to…
Paul Connolly
  • 319
  • 2
  • 15
0
votes
1 answer

xsd.exe is generating XML with "item" prepended to enumerations

I am trying to generate c# code from an XSD file and the enumerations are prepended with the word Item. How to I make this so that the enumerations are just numbers? The point of all this is to have an enumeration that only numbers can be used…
codenesium
  • 84
  • 2
  • 9
0
votes
0 answers

FindBy Not autogenerated by Custom Tool

I have a Users table with the following column names: Username,Password,EmployeeID, UserType,PasswordExpires,PasswordValidUntil,SecurityQuestion,SecurityAnswer,ActiveUser I have included the data source and dataset in the project.…
Gideon Mwangi
  • 141
  • 1
  • 3
0
votes
2 answers

Generate Xml schema from c# classes

I need to create a web-service that will integrate information from SAP within my organization. I have an existing application with a database structure. SAP will use the web-service to store values into the relevant tables/columns in the…
Carel
  • 2,063
  • 8
  • 39
  • 65
0
votes
1 answer

XSD.exe failing on invalid character - British Pound Symbol

I'm trying to convert a XML document to a XSD via XSD.exe; and it's failing when encountering the British pound symbol (£) as an invalid character. I quick summary of the XML looks like this:
Adam Frisby
  • 358
  • 5
  • 20
0
votes
0 answers

Generate XSD file from oracle table by stored procedure

I want to generate XSD file of oracle table from stored procedure, I have created a function for same but it not shows proper table columns order. create or replace function GEN_XML_SCHEMA1(target_table varchar2) return xmltype as xmlSchema…
hardik rawal
  • 117
  • 1
  • 2
  • 18
0
votes
1 answer

Links between multiple xsd schemas in one document

I have four xsd schemas where one use types from another three. I want to unite them in one document but xs:import with specified namesapces doesn't work: xsd.exe writes "Type ... is not declared". How to make links between multiple xsd schemas in…
mtkachenko
  • 5,389
  • 9
  • 38
  • 68
0
votes
1 answer

long to xml, xsd.exe, custom classes

I have 3 classes that map to my database. I need to insert an xml file into the database via these classes. The xml and classes are structured differently. Should I use xsd.exe to generate the classes of the xml and then map these generated classes…
mick
  • 139
  • 3
  • 16
0
votes
1 answer

MS Project XML Serialization

I am trying to read data from an MS Project XML file. I have used the XML Schema Tool to generate a set of strongly typed classes based on the Microsoft Project 2007 XML Schema. However, I ran into several issues. The xmlns property on the root…
Kevin
  • 13,044
  • 11
  • 55
  • 76
0
votes
2 answers

using XSD.exe to generate an XSD

I am building SSAS cubes using AMO in c#. For this, I want to get a list of the public properties for the classes for Server, Cube, Dimension, etc. This will be my superset from which the user must provide mandatory properties and may provide the…
Raj More
  • 47,048
  • 33
  • 131
  • 198