Handouts and Solutions for

06-19343 Software System Components 1

and

06-19322 Software System Components 1a

(XML and JDom)


Notes and Links

An Introduction to XML

An Introduction to Validation and DTDs

The JDom Web Site

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.


Sample Code

 
Code
HTML
A simple program to save data to an XML file and read it back from the file
Main.java
Main.java
The XML file generated by Main.java above
tasks.xml
tasks.xml
The DTD file for the tasks.xml file above
tasks.dtd
tasks.dtd
 
A non-assessed exercise to develop in the lab as practice for the assessed exercise
Task-Exercise.txt
Task-Exercise.txt
A sample XML file to use with the non-assessed exercise above
task.xml
task.xml
The DTD file for the task.xml file above
task.dtd
task.dtd
 
Using Map to handle identifiers for Task objects  
Maps.html


Alan P Sexton