JCooney.NET

Joseph Cooney's Weblog

NAVIGATION - SEARCH

kzu on XSD-based code generation on MSDN

XML MVP and avid bath-reader Daniel Cazzulino has written a cool article on the MSDN about customizing generated code by manipulating CodeDom object graphs when creating a “custom class” from an XML Schema (these object graphs are generated by the same framework classes that are used by xsd.exe when you give it the /classes command line switch). If this sounds somewhat similar to the CodeDom object graph manipulations that I was doing in my recent typed dataset sample then it should. I based some of my CodeDom manipulation code on stuff that Daniel posted a while ago. Unfortunately I had to almost totally re-write it to work with the object graphs that are created when generating typed datasets, but it got me started in the right direction. It is cool to know that the framework developers had extensibility in mind when they created these tools.
Comments are closed