Android Code Snippet New DbUtils Feature

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.b4x.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

  • DBUtils.zip
    19.6 KB · Views: 455

RauchG

Active Member
Licensed User
Longtime User

Attachments

  • dirdefaultinternal.PNG
    dirdefaultinternal.PNG
    43.7 KB · Views: 445

Reviewnow

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

RauchG

Active Member
Licensed User
Longtime User
File.DirDefaultInternal

DirDefaultInternal is not a member of file.

File.WriteString (File.DirDefaultInternal, sFileName, dbxml.asString2 (xmlProps))

What there am I to write?
 
Top