473,406 Members | 2,713 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,406 software developers and data experts.

XSDObjectGen and generating multiple .cs files for multiple schema

I'm looking for a good tool to generate C# classes (from XSD-schemas) to
(de-)serialize XML corresponding to those schemas.

XSDObjectGen almost meets these requirements -- only, I need to generate a
..cs file for each common .xsd file that is included (xsd:include) -- there
are a lot schemas which include several common .xsd files (full schema at
http://www.witsml.org/schemas/WITSML120_2003-01-30.zip).

The "/s" switch would have beein ideal for this, only it still generates
only one .cs file -- maybe this is only for "imported" (as opposed to
"included") schemas?

Is there any way to generate one .cs file for each included .xsd file?
Nov 12 '05 #1
3 4721
Edward wrote:
I'm looking for a good tool to generate C# classes (from XSD-schemas) to
(de-)serialize XML corresponding to those schemas.

XSDObjectGen almost meets these requirements...


I don't know if it meets your needs, but how about [1] and the companion
article [2]? There's also CodeXS on Code Project [3].

Cheers,
Stuart Celarier, Fern Creek

[1]
http://msdn.microsoft.com/xml/defaul...xsdcodegen.asp
[2] http://weblogs.asp.net/cazzu/archive...deGenTool.aspx
[3] http://www.codeproject.com/useritems/CodeXS.asp
Nov 12 '05 #2
Stuart,

Both [1] and the companion [2] seem to be very interesting, only there's so
many things going on in those sources, that I'm not very sure...
Do you have any idea how/where I could patch XsdGenerator for this
requirement?
Any pointers? suggestions?

The CodeXS on Code Project [3] (as far as I could see) is an online service,
no source-code available...

Hope to hear from you soon,

Edward

Nov 12 '05 #3
Because of the way that we read the schema, we cannot distinguish between
included files. The /s option only works for import directives.

Nov 12 '05 #4

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

Similar topics

2
by: Pavan | last post by:
Hi, I received an error from a schema using the much hyped XSDObjectGen: Unexpected error occured in XSDObjectGen : Specified cast is not valid. Please send the schema to support. However...
5
by: colinco | last post by:
Just out of curiousity, what are the deficiencies you've found with the new xsdobjectgen tool?
3
by: Bobby | last post by:
I have a schema and have used XSDObjectGen.exe to create a set of classes that represent the schema. What is the best way to fill xsdobjectgen.exe generated classes with data? I want to create...
2
by: Peter Bates | last post by:
Hi, I'm just getting used to XSDObjectGen and i have the following question. Can i use a class inherited from a class generated by XSDObjectGen with XmlSerialize? Specifically, I have many...
0
by: Pascal Brunot | last post by:
Hi, Running XSDObjectGen (1.4.1.0) on the following Infopath-generated XSD gives an "unexpected error": "Event register full" during generation (exact english error message may differ, i am...
0
by: Andrew Burgher | last post by:
Feeding the following .xsd into the XsdObjectGen (v1.4.2.0) tool produces an invalid attribute: with DataType="System.String". Has anybody seen this behaviour before? Is this a bug in...
0
by: Jeff Killberg | last post by:
I am working on a .NET 2.0 project where we will be defining a large object model in XML schema and generating the C# code to process XML documents conforming to this XML schema into the object...
2
by: olympus_mons | last post by:
Hi, I'm just discovering the power of xsd.exe, so maybe I'm doing something wrong. schema files describing requests and responses. So there is an extra xsd file for each response and each...
1
by: Veerle | last post by:
Hi, I am experiencing a lot of problems with XsdObjectGen. I downloaded the latest version from...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.