Subject: | Support UseForeignDTD option for loading DTD for documents without DOCTYPE |
It would be handy if XML::Parser supported the Expat UseForeignDTD
option which allows the application to provide a DTD for document that
do not contain a DOCTYPE declaration. The "UseForeignDTD" option to
new() should use the Expat XML_UseForeignDTD function to set this
option. For document without a DOCTYPE, the ExternEnt handler will be
called with NULL (presumably translated to undef) systemId and publicId.
This would allow applications to provide a DTD instead of rewriting the
input.