code: def ID(self, ID):
          
          ret = libxml2mod.xmlGetID(self._o, ID)
          if ret is None:raise treeError('xmlGetID() failed')
          __tmp = xmlAttr(_obj=ret)
          return __tmp
docs: Search the attribute declaring the given ID