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
|
|
Contact
Files in contact sample:
- addressBook.cs - address book class
- contact.cs - contact class
- contact.csproj - VS.NET project file
- contact.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
- Open a DOS shell
- change to "Dingo/bin/" directory. Example: cd c:\Dingo\bin\
- copy contact.xsd to the bin directory
- compile the schema with "dingo contact.xsd" command
- copy the generated files to "Dingo/samples/contact/" directory and replace the existing files. The files should be the same.
- open the contact project
- open Test.cs class in VS.NET
- build the project
- open a second DOS shell
- change to "Dingo/samples/contact/bin/" directory
- run the test with "contact.exe" command
If you don't want to go through all the steps, you can simply open contact project, build and run the command. The output from the simple test should be similar to the example below.
C:\eclipse3\workspace\dingo\samples\contact\bin>contact
loaded the xml successfull
name: John Doe
email: john@acme.com
The contact 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.
|
|