Create and access DOCTYPE DTD objects
Replace generic with structured error handler.

Throw the red flag only for messages at level error or higher.
Create and use entities