⇒ If you have to deal with data that
a) contains a DOCTYPE declaration (we are speaking of XML data here, so this means there is a system identifier in the DOCTYPE declaration that the parser will try to access) and
b) if you want to resolve the entities (to Unicode characters or whatever is in the entity),
then you should consider mirroring the DTD and using a catalog file.