CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Ben Reichelt's Weblog


More on xsd.exe

This post has moved to a new server.

View it at:

More on xsd.exe

.

(http://benreichelt.net/blog/2005/2/19/More-on-xsdexe/)



Comments

Brendan Tompkins said:

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.
# February 19, 2005 5:14 PM

JosephCooney said:

Hi Brendan - I'm curious as to what you mean by "templatize". Care to elaborate?
# February 19, 2005 5:30 PM

ben said:

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
# February 19, 2005 9:27 PM

JosephCooney said:

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.
# February 20, 2005 4:53 AM

Brendan Tompkins said:

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.
# February 20, 2005 12:41 PM

JosephCooney said:

# February 20, 2005 3:37 PM

JosephCooney said:

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
# February 20, 2005 3:43 PM

TrackBack said:

# March 1, 2005 7:17 PM

Brian H. Madsen said:

Thanks guys!

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

all respect to bloggers!
# August 1, 2005 1:33 AM

Phentermine. said:

Buy phentermine. Phentermine.

# August 30, 2007 3:13 PM
Check out Devlicio.us!

Our Sponsors

Free Tech Publications