Results 1 to 3 of 3
  1. #1
    alkic1 is offline Member
    Join Date
    Aug 2012
    Posts
    1
    Rep Power
    0

    Question XML files and JDBC driver.

    Hello guys !

    I have a bit of situation on which i really can't find any answer on google so i'm turning to you guys... so here it is:

    I would like to open XML files (.xml) on computer with a JDBC driver (instead of new File() function). So actually i want same functionality as Derby Enbedded Driver does, but instead of opening .db files i want to open .xml files. I'm using XML files for saving data like databases are - with tables, schemas and stuff. I can write something like my own JDBC driver, or extend from some driver that already does something like that.. I would like to make something, so i could connect like this:

    Java Code:
    String url = "jdbc:mydriver:D:\\username\nameOfFile.xml";
    Class.forName ("com.mydriver.jdbc.Driver").newInstance ();
    conn = DriverManager.getConnection (url);
    System.out.println ("Database connection established");
    Once i'm connected with driver, i would also like to use SQL statements for my XML file database.
    I hope i was clear enough so you have idea what i'm trying to achieve here.

    Any tips, help would be much appreciated !

    greetz,
    alkic1

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,042
    Rep Power
    20

    Default Re: XML files and JDBC driver.

    A quick google gives two that are both licensed (though with a trial version).
    StelsXML and HXTT XML.

    I did find Ashpool though.
    It looks dead to me, it's no longer being hosted at sourceforge (bar the old stuff) and the link to the new host doesn't go anywhere for me, but the stuff still on sourceforge might give you something to work off?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,042
    Rep Power
    20

    Default Re: XML files and JDBC driver.

    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 0
    Last Post: 03-03-2012, 01:01 AM
  2. JDBC Problem - com.mysql.jdbc.Driver
    By icu222much in forum Advanced Java
    Replies: 5
    Last Post: 11-22-2011, 04:54 PM
  3. JDBC Driver for SQLite 2.1
    By odvn in forum Advanced Java
    Replies: 2
    Last Post: 08-11-2011, 01:40 PM
  4. JDBC Driver
    By Ursula in forum New To Java
    Replies: 6
    Last Post: 08-23-2010, 05:41 PM
  5. Help with JDBC driver
    By Daniel in forum JDBC
    Replies: 2
    Last Post: 07-03-2007, 08:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •