[Mono-list] XSD Tool and code generators

Atsushi Eno atsushi@ximian.com
Sat, 11 Dec 2004 10:30:29 +0900


Hi,

Carlos Guzmán Álvarez wrote:
> Hello:
> 
> There are any sample on how to write a code generator that could be used
> with the xsd.exe tool ??

What do you exactly mean? xsd.exe itself is a code generator
application.

If you mean you want to use those code generator functionalities
used in xsd.exe, I would recommend to read
mcs/tools/mono-xsd/NewMonoXSD.cs. The source is simple, and all
the functionalities are in the class libraries.

The keywords are: XmlSchemaImporter/Exporter, XmlReflectionImporter,
XmlCodeExporter in System.Xml.Serialization, TypedDataSetGenerator
and DataSet.InferXmlSchema() in System.Data.

Atsushi Eno