Hello,
I want to read in comma-delimited files, build a DOM, compare against a DTD
and generate valid XML data.  This is called "validating generation" in the
book, "XML and Java - Developing Web Applications" by Maruyama, et al.

In the IBM parser (version 2) this is how it begins:
...
// Reads the DTD from the file
String dtdfile = "department.dtd";
FileInputStream is = new FileInputStream(dtdfile);
Parser parser = new Parser(dtdfile);
DTD dtd = parser.readDTDStream(is);
....

In Xerces (1.0.3) I can find no DTD class defined but there is a
DTDValidator....is this where I need to be going?   The concept of
"validating generation" would seem to be of value.  

Any help would be appreciated.

Reply via email to