The basics

 XSD vs Dingo
 Class Diagram
 NUnit Tests
 Java code

 Custom Builders




Files in contact sample:

  • helloworld.cs - root class
  • hellowroldType.cs - complexType which helloworld extends
  • dashSchema.csproj - VS.NET project file
  • dashSchema.sln - solution for project
  • Test - simple test class to load the sample data
  • xml - directory containing the schema and sample data
Step-by-step Instructions

  1. Open a DOS shell
  2. change to "Dingo/bin/" directory. Example: cd c:\Dingo\bin\
  3. copy dashSchema.xsd to the bin directory
  4. compile the schema with "dingo dashSchema.xsd" command
  5. copy the generated files to "Dingo/samples/dashSchema/" directory and replace the existing files. The files should be the same.
  6. open the contact project
  7. open Test.cs class in VS.NET
  8. build the project
  9. open a second DOS shell
  10. change to "Dingo/samples/dashSchema/bin/" directory
  11. run the test with "test.exe" command
This example tests how Dingo handles dashes "-" in the name. Since dashes are not legal characters for class names, Dingo and other schema compilers strip it out. The attribute then has to declare the type using the original dash name.

<xs:schema xmlns:xs="" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:complexType name="hello-worldType">
			<xs:element name="input" type="xs:string" maxOccurs="unbounded"/>
			<xs:element name="output" type="xs:string" maxOccurs="unbounded"/>
			<xs:element name="input-message" type="message"/>
			<xs:element name="output-message" type="message" maxOccurs="unbounded"/>
	<xs:simpleType name="message">
		<xs:restriction base="xs:string"/>
	<xs:element name="helloworld" type="hello-worldType"/>
</xs:schema> Logo
Copyright 2004 Peter Lin