code: def copyDtd(self):
          
          ret = libxml2mod.xmlCopyDtd(self._o)
          if ret is None:raise treeError('xmlCopyDtd() failed')
          __tmp = xmlDtd(_obj=ret)
          return __tmp
docs: Do a copy of the dtd.