This is the first version of an XSD Schema reader for CodeSmith.
It allows schema type and element information to be interrogated in an abstract and simplified way. CodeSmith properties are provided for the schema as a whole or for individual complex/simple types within the schema. Examples are included.
I am not a in general a fan of generating business objects from database schemas due to the business logic dependencies it introduces. My preferred development process is to ananlyse and design the core business objects, then define the data model to support it and finally design the mapping layer between business objects and data.
The XSDSchemaExplorer allows business data objects to be defined in terms of XSD's (usefully this can also provide the objects that serialize to a defined schema - e.g. for WebServices). The database schema can be used to generate the DAL and then all that is needed is the mapping layer!
XSDSchemaExplorer.zip is the dll and example. To use it, copy the XSDSchemaExplorer.dll into the CodeSmith program directory...
XSDSchemaExplorerSrc.zip is the source - surprise
The other two files form a chm help file if you follow these steps (the file was too big and I couldn't upload a standard split...is there an easier way?

)
- save doc.zip and chmPart.z01 to the same place.
- Open doc.zip and extract chmPart.zip
- Open chmPart.zip and if your zipper supports it (winzip does) you should be able to extract the XSDSchemaExplorer.chm file!
Enjoy
Cheers