[−][src]Function spatialite_sys::gaiaXmlTextFromBlob
pub unsafe extern "C" fn gaiaXmlTextFromBlob(
blob: *const c_uchar,
size: c_int,
indent: c_int
) -> *mut c_char
Extract an XMLDocument from within an XmlBLOB buffer
\param blob pointer to the XmlBLOB buffer. \param size XmlBLOB's size (in bytes). \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.
\return the pointer to the newly created XMLDocument buffer: NULL on failure
\sa gaiaXmlToBlob, gaiaXmlFromBlob
\note the returned XMLDocument will always be encoded as UTF-8 (irrespectively from the internal encoding declaration), so to allow any further processing as SQLite TEXT.
\note the XMLDocument buffer corresponds to dynamically allocated memory: so you are responsible to free() it before or after.