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

Feedback is always welcome! If you'd like to get in touch with me concerning the contents of this article, please use Twitter.