def write_table_votable(input, output, table_id=None, overwrite=False, tabledata_format=None):
 if input.has_mixin_columns:
  mixin_names = [name for (name, col) in input.columns.items() if (not isinstance(col, input.ColumnClass))]
  raise ValueError(u'cannot write table with mixin column(s) {0} to VOTable'.format(mixin_names))
 if (isinstance(output, six.string_types) and os.path.exists(output)):
  if overwrite:
   os.remove(output)
  else:
   raise IOError(u'File exists: {0}'.format(output))
 table_file = from_table(input, table_id=table_id)
 table_file.to_xml(output, tabledata_format=tabledata_format)

def write_table_votable ( input , output , table_id = None , overwrite = False , tabledata_format = None ) : if input . has_mixin_columns : mixin_names = [ name for ( name , col ) in input . columns . items ( ) if ( not isinstance ( col , input . ColumnClass ) ) ] raise ValueError ( u'cannot write table with mixin column(s) {0} to VOTable' . format ( mixin_names ) ) if ( isinstance ( output , six . string_types ) and os . path . exists ( output ) ) : if overwrite : os . remove ( output ) else : raise IOError ( u'File exists: {0}' . format ( output ) ) table_file = from_table ( input , table_id = table_id ) table_file . to_xml ( output , tabledata_format = tabledata_format )
write a table object to an vo table file parameters input : table the table to write out .