added support for inserting DTD in display mode of xml generation script