Groups | Blog | Home
all groups > dotnet xml > may 2004 >

dotnet xml : xsd.exe and code generation


Wayne
5/12/2004 11:21:42 AM
I have three xml schemas, one schema contains types that the other two
referance. When generate code for each of the schemas, all three cs files
contain the types that are part of the common schema.

Currently I am going through the auto generated code and removing the common
types, with the help of the compiler since they are all in the same
namespace.


Aside from listing all the types I want generated in each of the other two
schemas, as I may add more in the future and don't want to forget to add to
the list, is there a way to get XSD to not generate the common types for the
other two Schemas?

Thanks
Wayne

Daniel Cazzulino [MVP XML]
5/16/2004 7:46:09 PM
You may want to try
http://msdn.microsoft.com/xml/default.aspx?pull=/library/en-us/dnxmlnet/html/xsdcodegen.asp

--
Daniel Cazzulino [MVP XML]
Clarius Consulting SA
http://weblogs.asp.net/cazzu
http://aspnet2.com

[quoted text, click to view]


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.679 / Virus Database: 441 - Release Date: 07/05/2004

Wayne
5/25/2004 1:32:18 PM
Thank you this looks like something I can wind up using. His example doesn't
have what I asked for below, but does have two other items in it that I can
defently use.

Thanks
Wayne



[quoted text, click to view]

Daniel Cazzulino [MVP XML]
5/25/2004 3:24:52 PM
This guy improved that code with the feature you need.
http://www.stablevalue.com/archives/week_2004_05_16.html#000189

You can expect to see this in the Mvp.Xml project pretty soon
(http://sf.net/projects/mvp-xml)

--
Daniel Cazzulino [MVP XML]
Clarius Consulting SA
http://weblogs.asp.net/cazzu
http://aspnet2.com

[quoted text, click to view]


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.690 / Virus Database: 451 - Release Date: 23/05/2004

AddThis Social Bookmark Button