Entity references cannot be properly resolved as DTD part and all external stuff is completelly ignored. A callback interface can be established for this purpose:
public interface EntityReferenceResolver { NodeList resolveEntityReference(EntityReference ref) throws IOException; }
Attribute values should report DTD defined defaults as it cannot be also retrieved from token chain. In this case can be also introduced a callback or does not stay fully with DOM spec. But is it violation of spec? We are contruction DOM without DTD knowledge so there are not default attributes declared.