The factory to create and return DTD types. The implementation should
store the created datatypes in static data, so that they can be shared by
multiple parser instance, and multiple threads.
DVFactoryException cannot create an instance of the specified
class name or the default class name
try {
// if the class name is not specified, use the default one
return (DTDDVFactory)
(ObjectFactory.newInstance(factoryClass, ObjectFactory.findClassLoader(), true));
} catch (ClassCastException e) {
throw new DVFactoryException("DTD factory class " + factoryClass + " does not extend from DTDDVFactory.");
}