Has anyone parsed an XML dtd to create a DOM object? I don't know if that is possible or not, if it isn't how could I get an object containing all the attributes allowed for a given element?

Christoph Krüger

You might want to have a look at the Oracle XML class generator. This neat little Java API allows you to load a DTD and have each element generated as .java class files. In a second step you can use these class files to build an application which generates DOM-objects according to the DTD. It's all pretty well documented in the included samples, so I'm leaving that to you.