Friday, December 10, 2004

A Better XML-> .NET Code Generator

Take a look at this page for a greatly improved way to generate .NET code from an XML XSD schema.

xsd.exe, the tool which comes with the .NET framework, works fine for generating very simple classes. The problem is that it generates classes with only public variables--no properties are created. The issue is that the .NET data binding controls (and most third party controls) are set to only look for properties, not public members.

This new generator (which is technically a sample) fixes this problem nicely, and also throws in some nice ArrayLists as part of the deal.

Recommended.