utilityDataModelDumpDataToXml

fnbool utilityDataModelDumpDataToXml(gda.data_model.DataModel model, libxml2.types.NodePtr parent, int[] cols, int[] rows, bool useColIds)

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

Warning: this function uses a #GdaDataModelIter iterator, and if model does not offer a random access (check using [gda.data_model.DataModel.getAccessFlags]), 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

modela #GdaDataModel
parentthe parent XML node
colsan array containing which columns of model will be exported, or null for all columns
rowsan array containing which rows of model will be exported, or null for all rows
useColIdsset to true to add column ID information

Returns

true if no error occurred