Function gaiaXmlStore

Source
pub unsafe extern "C" fn gaiaXmlStore(
    blob: *const c_uchar,
    size: c_int,
    path: *const c_char,
    indent: c_int,
) -> c_int
Expand description

Stores an external XML Document

\param blob pointer to the XmlBLOB buffer. \param size XmlBLOB’s size (in bytes). \param path pathname of the export file \param indent if a negative value is passed the XMLDocument will be extracted exactly as it was when loaded. Otherwise it will be properly formatted using the required intenting (max. 8); ZERO means that the whole XML Document will consist of a single line.

\sa gaiaXmlToBlob, gaiaXmlTextFromBlob

\note the returned XMLDocument will always respect the internal encoding declaration, and may not support any further processing as SQLite TEXT if it’s not UTF-8.

\note the XMLDocument buffer corresponds to dynamically allocated memory: so you are responsible to free() it before or after.

\sa gaiaXmlFromBlob, gaiaXmlLoad

\note the BLOB buffer corresponds to dynamically allocated memory: so you are responsible to free() it [unless SQLite will take care of memory cleanup via buffer binding].