Interface XMLEntityResolver

All Superinterfaces:
EntityResolver, XMLResolver
All Known Implementing Classes:
XhtmlEntityResolver

public interface XMLEntityResolver extends EntityResolver, XMLResolver
An entity resolver will read the entity definitions from the classpath (not the web) and is suitable for use in both STaX and SAX based parsing of XHTML. This resolver caches the entity definition files for faster access.
  • Method Details

    • createDTD

      @Deprecated String createDTD()
      Deprecated.
      since 5.8. Use the the following DTD declaration instead: <!DOCTYPE content-root SYSTEM "xhtml.ent">
      Return definitions suitable for use in an XML DTD which will be compatible with the entities resolved by this XMLEntityResolver.
      Returns:
      a String suitable for use in a DTD declaring the entities handled by this resolver.