utilityDataModelDumpDataToXml
fn
bool 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
model | a #GdaDataModel |
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 |
useColIds | set to true to add column ID information |
Returns
true if no error occurred