no need to set DTD. so setDTD function calling removed.