Null Entity Resolver

Instead of permitting the XML parser to download document type definitions, this entity resolver returns an empty string for all entities.

There you go: NullEntityReslver.java

See also the XML Validator and the Caching Entity Resolver