1.

How Do I More Efficiently Parse Several Documents Sharing A Common Dtd?

Answer»

DTDs are not currently cached by the parser. The common DTD, since it is specified in each XML document, will be re-parsed once for each document.

However, there are things that you can do now, to make the process of READING DTD's more efficient:

  • keep your DTD and DTD references local
  • use internal DTD subsets, if possible
  • load FILES from server to local client before parsing
  • Cache document files into a local client cache. You should do an HTTP header request to check whether the document has changed, before accessing it over the network.
  • Do not REFERENCE an external DTD or internal DTD subset at all. In this case, no DTD will be READ.
  • Use a custom EntityResolver and keep common DTDs in a memory buffer.

DTDs are not currently cached by the parser. The common DTD, since it is specified in each XML document, will be re-parsed once for each document.

However, there are things that you can do now, to make the process of reading DTD's more efficient:



Discussion

No Comment Found