Build an Entity Resolver to Redirect a SAX Parser

This tip shows you how to bulid an entity resolver to “change” a public indentifier into a system identifier. The idea is to override the resolveEntity method of the EntityResolver interface:

public InputSource resolveEntity(String id_public,String id_system){   if (id_public.equals("-//W3C//DTD XHTML 1.0 Transitional//EN"))      return(new InputSource(         ""));          return null;       }
Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Related Posts