public class XMLFormatter
extends XMLFormatter
Overrides the XML header provided by the XMLFormatter in the JavaSE logging
package. The original/superclass puts an absolute reference to a DTD into
the XML header. This DTD never exists in the wanted places causing the
parser to bail out. On some versions of the XML parser we can set the
feature http://apache.org/xml/features/nonvalidating/load-external-dtd
to false and therefore ignore the DTD header altogether, but this causes
problems in parsers where the feature is not supported and the DTD is always
loaded.
- Author:
- Akara Sucharitakul