27 Jul
2010
27 Jul
'10
12:02 p.m.
Dear Team, We need to deal with XML that contains a DOCTYPE declaration and named entities. Unfortunately the DTD sometimes isn't available at the system location (e.g., "E:\mydoc.dtd") given in each document's declaration. Is it possible to specify a custom resolver such as org.apache.xml.resolver.tools.CatalogResolver so that the DTD can be found by virtue of a catalog, and consequently the entities can be resolved? If catalogs are not available, we'll have to resolve the entities (and remove the DOCTYPE declaration) in a preprocessing step using xmllint or saxon. This is acceptable, we just need to know how to proceed. Many thanks, Gerrit