An Introduction to Validation and DTDs
Chapters from Elliotte Rusty Harold's book Processing XML with Java at CafeConLeche. This is an excellent tutorial on JDom, although the current JDom API has a few differences from what is described here.
|
Code
|
HTML
|
|
| A simple program to save data to an XML file and read it back from the file | ||
| The XML file generated by Main.java above | ||
| The DTD file for the tasks.xml file above | ||
| A non-assessed exercise to develop in the lab as practice for the assessed exercise | ||
| A sample XML file to use with the non-assessed exercise above | ||
| The DTD file for the task.xml file above | ||
| Using Map to handle identifiers for Task objects | ||