[][src]Function spatialite_sys::gaiaXmlToBlob

pub unsafe extern "C" fn gaiaXmlToBlob(
    p_cache: *const c_void,
    xml: *const c_uchar,
    xml_len: c_int,
    compressed: c_int,
    schemaURI: *const c_char,
    result: *mut *mut c_uchar,
    size: *mut c_int,
    parsing_errors: *mut *mut c_char,
    schema_validation_errors: *mut *mut c_char
)

Creates an XmlBLOB buffer

\param p_cache a memory pointer returned by spatialite_alloc_connection() \param xml pointer to the XML document (XmlBLOB payload). \param xml_len lenght of the XML document (in bytes). \param compressed if TRUE the returned XmlBLOB will be zip-compressed. \param schemaURI if not NULL the XML document will be assumed to be valid only if it successfully passes a formal Schema valitadion. \param result on completion will containt a pointer to XmlBLOB: NULL on failure. \param size on completion this variable will contain the XmlBLOB's size (in bytes) \param parsing_errors on completion this variable will contain all error/warning messages emitted during the XML Parsing step. Can be set to NULL so to ignore any message. \param schema_validation_errors on completion this variable will contain all error/warning messages emitted during the XML Schema Validation step. Can be set to NULL so to ignore any message.

\sa gaiaXmlFromBlob, gaiaXmlTextFromBlob, gaiaXmlBlobGetLastParseError, gaiaXmlBlobGetLastValidateError

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