Intro
 FAQ
 Features
 Limitations
 The basics

 XSD vs Dingo
 Class Diagram
 NUnit Tests
 Java code
 SourceForge

 Plugins
 Custom Builders
 Tutorial
 quicktips

 Samples
   conversion
   dashSchema
   contact
   foobar
   geneology

 Links
  NUnit

Foobar

Files in foobar sample:

  • Foobar.cs - foobar class
  • foobar.csproj - VS.NET project file
  • foobar.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 foobar.xsd to the bin directory
  4. compile the schema with "dingo foobar.xsd" command
  5. copy the generated files to "Dingo/samples/foobar/" directory and replace the existing files. The files should be the same.
  6. open the foobar project
  7. open Test.cs class in VS.NET
  8. build the project
  9. open a second DOS shell
  10. change to "Dingo/samples/foobar/bin/" directory
  11. run the test with "foobar.exe" command
If you don't want to go through all the steps, you can simply open foobar project, build and run the command. The output from the simple test should be similar to the example below.
    C:\eclipse3\workspace\dingo\samples\foobar\bin>foobar
    loaded the xml successfull
    zip: 01803
    email: 5

The foobar sample is from Sun's JWSDP 1.4 release. If anyone has a particularly complex schema and would me try it, feel free to post it to the forum or email it to me directly woolfel AT gmail.com. Most of the schemas I've come across from VS.NET are rather simple and generally should work.

SourceForge.net Logo
Copyright 2004 Peter Lin