Android Code Snippet New DbUtils Feature

Reviewnow

Active Member
Licensed User
I posted this over a year ago in the dbutils thread and thought it would be better posted here

New DbUtils Feature
Export SQLite tables to xml
Required xmlBuilder Library http://www.basic4ppc.com/android/forum/attachments/xmlbuilder-zip.11015/

ExportTableToXml - Export the contents of a table to a single xml file
ExportTableToXmlString - Usefull for posting the entire contents of a table to a remote server for parsing / web services
ExportDbToXml - Exports every table in the database to a single xml file usefull for backing up your database

More instructions and examples are provided within the attachment look at the procedure exporttoxml in the main activity

These functions work as intended but if anyone has enhancements or suggested changes please feel free to let me know.
 

Attachments

Reviewnow

Active Member
Licensed User
that is intentional so you can set your own path to where you want to store your files
 
Last edited:
Top