code: def get_synset_xml(self,syn_id):
          
  
          http, resp, content = self.connect()
  
          params   = ""
          fragment = ""
  
          path = "cdb_syn"
          if self.debug:
              printf( "cornettodb/views/query_remote_syn_id: db_opt: %s" % path )
  
          # output_opt: plain, html, xml
          # 'xml' is actually xhtml (with markup), but it is not valid xml!
          # 'plain' is actually valid xml (without markup)
          output_opt = "plain"
          if self.debug:
              printf( "cornettodb/views/query_remote_syn_id: output_opt: %s" % output_opt )
  
          action = "runQuery"
          if self.debug:
              printf( "cornettodb/views/query_remote_syn_id: action: %s" % action )
              printf( "cornettodb/views/query_remote_syn_id: query: %s" % syn_id )
  
          qdict = {}
          qdict[ "action" ]  = action
          qdict[ "query" ]   = syn_id
          qdict[ "outtype" ] = output_opt
  
          query = urllib.urlencode( qdict )
  
          db_url_tuple = ( self.scheme, self.host + ':' + str(self.port), path, params, query, fragment )
          db_url = urlparse.urlunparse( db_url_tuple )
          if self.debug:
              printf( "db_url: %s" % db_url )
  
          resp, content = http.request( db_url, "GET" )
          if self.debug:
              printf( "resp:\n%s" % resp )
          #    printf( "content:\n%s" % content )
          #    printf( "content is of type: %s" % type( content ) )        #<type 'str'>
  
          xml_data = eval( content )
          return etree.fromstring( xml_data )
docs: call cdb_syn with synset identifier -> returns the synset xml;