<div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I'm developing a new feature to save SLD and ui in Spatialite provider in the same way this function is available for postgres.</div><div><br></div><div>this function developed for Faunalia is funded by ARPA Piemonte<br>

</div><div>fork is available at: <a href="https://github.com/luipir/QGIS/tree/spatialite-savestyle">https://github.com/luipir/QGIS/tree/spatialite-savestyle</a></div><div>and actual modification are localized in this commit: f058bea1fe51116b8231eb5c1ca4faee485c38b2</div>

<div><br></div><div>there are some question about how to develop it and are related how to manage XML in a sqlite/spatialite table.</div><div><br></div><div>this code derive by the postgres provider code where QML and UI xmls are recorded in a XML column. XML is a postgres type. This type is not available in SQlite but it's available in SL 4.1> (called XmlBlob [1])</div>

<div>In this preliminary commit XML is saved in a text column, but saving XML as a blog (blob type in sqlite or XmlBlob in SL) have the advantage to avoid all encoding problems.</div><div><br></div><div>so the question is... sqlite blob or spatialite xmlbob?</div>

<div><br></div><div>Blob type can't allow XML parsing using SQL queries<br></div><div>XmlBlob allows this (using libxml2)</div><div><br></div><div>Blob type is sqlite native type</div><div>XmlBlob can be used only with SL 4.1></div>

<div><br></div><div>My preference is to use native data type Blob. What's you opinion about blob/ xmlblob or whatever</div><div><br></div><div>regards,</div><div><div><div dir="ltr"><br class="">Luigi Pirelli (<a href="mailto:luigi.pirelli@faunalia.it" target="_blank">luigi.pirelli@faunalia.it</a> - <a href="mailto:luipir@gmail.com" target="_blank">luipir@gmail.com</a>)</div>

</div></div><div><br></div><div>[1] <a href="https://www.gaia-gis.it/fossil/libspatialite/wiki?name=XmlBlob-intro">https://www.gaia-gis.it/fossil/libspatialite/wiki?name=XmlBlob-intro</a></div><div><br></div></div></div>