Android Code Snippet New DbUtils Feature

Discussion in 'Code Snippets' started by Reviewnow, Feb 5, 2015.

  1. Reviewnow

    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.
     

    Attached Files:

  2. RauchG

    RauchG Active Member Licensed User

    Attached Files:

  3. Reviewnow

    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: Feb 5, 2015
  4. RauchG

    RauchG Active Member Licensed User

    File.DirDefaultInternal

    DirDefaultInternal is not a member of file.

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

    What there am I to write?
     
  5. Reviewnow

    Reviewnow Active Member Licensed User

    thedesolatesoul and MikeH like this.
  6. RauchG

    RauchG Active Member Licensed User

    Hello Reviewnow,

    Thanks for the link

    Greeting
    RauchG
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice