473,387 Members | 3,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to obtain a schema for my classes

Hello!

xsd.exe is able to generate an XSD schema for the classes in an assembly. I
suppose that xsd.exe is just using some of the .NET Framework classes to
achieve the outcome, but I don't know which ones. Therefore my question
basically is, how to generate an XSD schema for my classes programmatically
instead of invoking xsd.exe?
Best regards,

Henrik Dahl
Nov 16 '05 #1
2 1012
Henrik,

Basically, under the hood, xsd.exe uses the System.Xml,
System.Xml.Serialization, and System.CodeDom namespaces to accomplish what
it does (albeit, usually badly! lol).

These articles should help you:

http://weblogs.asp.net/cazzu/archive.../24/33302.aspx
http://msdn.microsoft.com/XML/Buildi...xsdcodegen.asp

--
HTH

Kyril Magnos
"I'm not a developer anymore, I'm a software engineer now!" :-)

"Henrik Dahl" <q@q.q.q> wrote in message
news:O4*************@TK2MSFTNGP10.phx.gbl...
| Hello!
|
| xsd.exe is able to generate an XSD schema for the classes in an assembly.
I
| suppose that xsd.exe is just using some of the .NET Framework classes to
| achieve the outcome, but I don't know which ones. Therefore my question
| basically is, how to generate an XSD schema for my classes
programmatically
| instead of invoking xsd.exe?
|
|
| Best regards,
|
| Henrik Dahl
|
|
Nov 16 '05 #2
Kyril,

Thank you very much! I'll try to take a look.
Best regards,

Henrik Dahl
"Kyril Magnos" <ky**********@yahoo.com> wrote in message
news:ey****************@TK2MSFTNGP10.phx.gbl...
Henrik,

Basically, under the hood, xsd.exe uses the System.Xml,
System.Xml.Serialization, and System.CodeDom namespaces to accomplish what
it does (albeit, usually badly! lol).

These articles should help you:

http://weblogs.asp.net/cazzu/archive.../24/33302.aspx
http://msdn.microsoft.com/XML/Buildi...xsdcodegen.asp
--
HTH

Kyril Magnos
"I'm not a developer anymore, I'm a software engineer now!" :-)

"Henrik Dahl" <q@q.q.q> wrote in message
news:O4*************@TK2MSFTNGP10.phx.gbl...
| Hello!
|
| xsd.exe is able to generate an XSD schema for the classes in an assembly. I
| suppose that xsd.exe is just using some of the .NET Framework classes to
| achieve the outcome, but I don't know which ones. Therefore my question
| basically is, how to generate an XSD schema for my classes
programmatically
| instead of invoking xsd.exe?
|
|
| Best regards,
|
| Henrik Dahl
|
|

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Robert Jacobson | last post by:
Hi, I have a number of classes in one assembly. I'd like to use XSD.exe to generate a schema for just one class ("Parse Rules") and its nested child classes. Is there an attribute that will...
3
by: Davide Bedin | last post by:
I have a "library" schema with the simple and complex types I commonly use in other schemas and then several other schemas, maybe created by other developers, that import/include the library...
0
by: XSD-optimist | last post by:
I am trying to generate the classes for an XSD schema using the Microsoft XSD Object Code Generator (XSDObjGen). I am having a schema that contains the definition of the following: 1. a complex...
3
by: Kiran | last post by:
Hi, I want to back up my data in some table in SQL server and import it back using Bulk Load of SQL server 2K. I can use the following code to backup the data in XML ...
1
by: eSapient | last post by:
I get the following error when I run the XML Schema Definition Tool on a XML schema: Error: Error generating classes for schema 'codeGeoFeatureType'. - Specified cast is not valid. The XSD...
4
by: joewhitehair | last post by:
Using a schema, I created classes for my web service using the XSD.exe tool. With the classes I then wrote a web service function, but the WSDL that is generated has different minOccurs and...
7
by: greatcanyon | last post by:
Hi, When I create a new user in DB2, can I set the default schema to an existing schema? The reason I want to do this is that I want to later connect to db2 as this user and access tables...
1
by: donnie.hale | last post by:
Question: What's the "canonical" way to import an existing XSD schema file into VS2005 in such a way that I can use standard C# object / property techniques to create content of that schema type...
3
by: h4xPace | last post by:
I am building a MySQL query application, and I have run into a small snag. MySQL has released a set of classes that extend the .NET framework base data classes (command, connection, etc), and I am...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.