Hi,

I want to read a DTD
and generate valid XML-File (XML-Document).  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);

How can I do in this way in Xerces-Java 1.0.3?
What is to do (steps)?

with best regards


Siegfried Schomisch

--------------
InformationsZentrum Sozialwissenschaften
Abt. Forschung und Entwicklung
Siegfried Schomisch, M.A. 
Lennestr. 30, D-53113 Bonn
Tel.: (+49) 228 2281 168
Fax: (+49) 228 2281 120 
E-mail: [EMAIL PROTECTED]
IZ: http://www.bonn.iz-soz.de/

Reply via email to