<CharlieDigital/> Programming, Politics, and uhh…pineapples

6May/06Off

I’ve Done It….

I was tired of working with tools that used XmlSchemaImporter and XmlCodeExporter (XSD.exe and WSCF) to generate code from XSD files.  I'm sure I'm not the only one, as there are other developers that are awaiting a .Net 2.0 version of the tool as well.

Unfortunately, the execellent XsdObjectGen.exe tool hasn't been updated to take advantage of .Net 2.0 features like generics and partial classes (the most significant change).

After looking at Dingo a bit (already open source and using a templating method as well) and searching for other options, I came to the conclusion that the only sensible thing to do would be to fix the codebase for XsdObjectGen.exe and rewrite the code generation logic.  Dingo was a bit too dense for its own good and there really weren't any other alternatives that I could find.

Took me about 45 minutes to get it up and running with generic lists.  I emailed Dan Rogers to see if it would be acceptable to post this code and/or the compiled binaries and executable (same exact command line parameters).  I know that the generated code refers to an EULA.doc, but I checked the installation directory and found no such document.  So we'll see how that turns out...

Posted by Charles Chen

Filed under: .Net, Dev Comments Off
Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.