File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes JDBC with XML files. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC with XML files." Watch "JDBC with XML files." New topic

JDBC with XML files.

Care Carjev

Joined: Aug 29, 2012
Posts: 1
Hello guys !

I have a bit of situation on which i really can't find any answer on google :x: 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:

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 !

Martin Vajsar

Joined: Aug 22, 2010
Posts: 3732

Welcome to the Ranch, Care!

Which keywords did you use in your search? I got a promising hit on the very first term I've tried, in just a few seconds.

So, please do SearchFirst. It's really hard to believe you haven't hit anything useful.
Wei Dai
Ranch Hand

Joined: Jun 22, 2005
Posts: 86
A commercial XML JDBC driver is at
I agree. Here's the link:
subject: JDBC with XML files.
It's not a secret anymore!