utility_data_model_dump_data_to_xml


Description:


public bool utility_data_model_dump_data_to_xml (DataModel model, unowned Node* parent, int[]? cols, int[]? rows, bool use_col_ids)

Dump the data in a DataModel into a xmlNodePtr (as used in libxml).

Warning: this function uses a DataModelIter iterator, and if model does not offer a random access (check using get_access_flags), the iterator will be the same as normally used to access data in model previously to calling this method, and this iterator will be moved (point to another row).

Parameters:

model

a DataModel

parent

the parent XML node

cols

an array containing which columns of model will be exported, or null for all columns

rows

an array containing which rows of model will be exported, or null for all rows

use_col_ids

set to true to add column ID information

nb_cols

the number of columns in cols

nb_rows

the number of rows in rows

Returns:

true if no error occurred


Namespace: Gda
Package: libgda-5.0



2022 vala-language.org