Results 1 to 4 of 4

Thread: XML Database: eXist

  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default XML Database: eXist

    Hi,

    has someone here already made experiences with XML databases like eXist (or any other) in conjunction with Qt?
    Which XML database do you prefer and do you know a HowTo/tutorial for Qt with XML databases?


    Thanks
    Lykurg

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: XML Database: eXist

    Quote Originally Posted by Lykurg View Post
    Hi,
    has someone here already made experiences with XML databases like eXist (or any other) in conjunction with Qt?
    Which XML database do you prefer and do you know a HowTo/tutorial for Qt with XML databases?
    Thanks
    Lykurg
    I tested IBM DB2 http://www-306.ibm.com/software/data/db2/express/ && odbc on qt ... running nice ..... but to my work on qt client xslt from gnome ( http://xmlsoft.org/XSLT/ ) make it a good job.... to generate PDF latex html ecc...
    and running on all OS.... have a look on http://sourceforge.net/projects/visual-xsltproc/ && on server apache I transform xml in a tool name popoon http://www.popoon.org/ generate PDF on the fly Apache FOP http://xmlgraphics.apache.org/fop/ word , openoffice && xhtml....
    xslt is the fasted query .....

    If you save on mysql xml file is faster as DB2 express....

    You must only read file && encodeBase64(file stream) and save to longblob field .... on this way you can save 2GB file....

    Qt Code:
    1. /* encode to name */
    2. QString encodeBase64( QString xml )
    3. {
    4. QByteArray text;
    5. text.append(xml);
    6. return text.toBase64();
    7. }
    8.  
    9. /* decode to name */
    10. QString decodeBase64( QString xml )
    11. {
    12. QByteArray xcode("");;
    13. xcode.append(xml);
    14. QByteArray precode(QByteArray::fromBase64(xcode));
    15. QString notetxt = precode.data();
    16. return notetxt;
    17. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by patrik08; 6th March 2007 at 01:34.

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: XML Database: eXist

    Hi patrik08,

    thanks for your advice to DB2 Express-C. It looks interesting, but because I am a really novice to the whole database stuff, I have some litte questions:

    a) Can DB2 Express-C be used like SQLite: embedded and with no configuration? (It looks to me that not. So if I use it, must my Programm inherit the 375 MB exe file from the download site?)

    b) I have looked in your project sources but not find the relating lines of code. Can you just tell me in which files the essential code relating to DB2 are.

    c) Are the license conditions DB2 Express-C in priciple like LGPL, so that DB2 Express-C can also be used in closed-source applications?


    Thanks,

    Lykurg

  4. #4
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: XML Database: eXist

    Quote Originally Posted by Lykurg View Post
    Hi patrik08,

    thanks for your advice to DB2 Express-C. It looks interesting, but because I am a really novice to the whole database stuff, I have some litte questions:

    a) Can DB2 Express-C be used like SQLite: embedded and with no configuration? (It looks to me that not. So if I use it, must my Programm inherit the 375 MB exe file from the download site?)
    No.... DB2 is like Oracle or Mysql .... is not a static db file like sqlite2/3
    But you can access over your static lib on a class on the same method from:
    http://visual-xsltproc.svn.sourcefor...pp?view=markup
    &&
    http://visual-xsltproc.svn.sourcefor....h?view=markup
    http://www.redbooks.ibm.com/redbooks/pdfs/sg247301.pdf chapter 4 note have a look
    to php to && c++ odbc can handle your data ......

    If you like to attach a db to apps ... have a look on .... http://quazip.sourceforge.net/
    Easy to use ... http://www.qtforum.de/forum/viewtopic.php?t=3375 ...
    You can make it all to xml && zip ... and explode on Install or first runn....

    If you can work on xslt .... db is not needet.... for only 300MB data....


    b) I have looked in your project sources but not find the relating lines of code. Can you just tell me in which files the essential code relating to DB2 are.
    I say i have access DB2 on odbc on qt and running nice....
    http://qtexcel-xslt.svn.sourceforge..../_odbc_wizard/
    this is a tool to export dbs on xml && mysql .. && csv http://en.wikipedia.org/wiki/Comma-separated_values

    I put source to Subversion to download ... on download section you find only the minimal...





    c) Are the license conditions DB2 Express-C in priciple like LGPL, so that DB2 Express-C can also be used in closed-source applications?
    Lykurg
    I don know ... all IT Paper & magazine say OpenSource ....
    I not find license on http://www-306.ibm.com/software/data/db2/ i buy a php magazine && inside this db2 express CD ... and i install easy on linux... now i have mysql & db2 running on the same server....

Similar Threads

  1. Threads and database connection
    By probine in forum Qt Programming
    Replies: 9
    Last Post: 7th August 2013, 08:30
  2. updating database
    By locus in forum Qt Programming
    Replies: 3
    Last Post: 27th January 2007, 05:54
  3. Database access issue
    By Gayathri in forum Newbie
    Replies: 3
    Last Post: 23rd November 2006, 07:41
  4. Issues regarding QMySql drivers and mysql database
    By bera82 in forum Qt Programming
    Replies: 2
    Last Post: 10th August 2006, 17:50
  5. Filling combobox from database
    By Philip_Anselmo in forum Qt Programming
    Replies: 3
    Last Post: 11th May 2006, 17:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.