Ben Reichelt's Weblog

Sponsors

The Lounge

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
More on xsd.exe

[Advertisement]

Comments

Brendan Tompkins wrote re: More on xsd.exe
on 02-19-2005 5:14 PM
This is pretty interesting. Have you ever been able to templatize the code that XSD generates? I've always wanted to do that, but have been too lazy to look into it.
JosephCooney wrote re: More on xsd.exe
on 02-19-2005 5:30 PM
Hi Brendan - I'm curious as to what you mean by "templatize". Care to elaborate?
ben wrote re: More on xsd.exe
on 02-19-2005 9:27 PM
I think he means that you supply a "template" .cs file for the code generator to use as a template file. Its similar to how Brendan uses template files for his collections classes, I can't find the link to his post about it, but I think thats what hes talking about. And, no I haven't tried using a template file at all, this is my first foray into generating code from an .xsd
JosephCooney wrote re: More on xsd.exe
on 02-20-2005 4:53 AM
XSD.exe uses the codedom internally to do it's code generation (generating typed datasets and classes from .xsd files) so there is not much scope for using templates if you want to leverage that. You could always write your own, or use XSLT.
Brendan Tompkins wrote re: More on xsd.exe
on 02-20-2005 12:41 PM
There's an old thread somewhere about doing this, the question popped up in a discussion on typed datasets vs business entities. I'll see if I can dig it up. It'd be nice to be able to teak the code that it generates, to add custom business rules, etc.
JosephCooney wrote re: More on xsd.exe
on 02-20-2005 3:37 PM
JosephCooney wrote re: More on xsd.exe
on 02-20-2005 3:43 PM
You might also want to look at this article from Daniel Cazzulino http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxmlnet/html/xsdcodegen.asp
TrackBack wrote More serialization
on 03-01-2005 7:17 PM
Brian H. Madsen wrote re: More on xsd.exe
on 08-01-2005 1:33 AM
Thanks guys!

can't believe it was this easy finding information on exactly the topic i was needing.

all respect to bloggers!
Phentermine. wrote Cheapest phentermine.
on 08-30-2007 3:13 PM

Buy phentermine. Phentermine.