Add DTD and put function