Re: JDBC and XML

Lars Marius Garshol (larsga@ifi.uio.no)
Tue, 15 Sep 1998 14:09:34 +0200


(Please don't follow-up to both lists (xml-dev and XML-L) even though I
did here. I had to do it so people would see that this question has been
answered.)

* January Tsai
>
>Is there a JDBC driver for XML or something that works the same but named
differently?

XML is not a kind of relational database, so a JDBC driver for XML would not
make much sense. XML looks a bit like HTML, even though it does have something
in common with databases: the possibility store information in a structured
way.

XML does have "something that works the same but is named differently": SAX.
SAX is a common API for XML parsers and is supported by nearly all Java XML
parsers.

You can find it at:
<URL:http://www.megginson.com/SAX/>

There is also a higher-level API called DOM, which may also be suitable for
your purposes. You can find a list of DOM implementations at:

<URL:http://www.stud.ifi.uio.no/~larsga/linker/xmltools/by-standard.html#DOM>

I hope this helped you.
--Lars M.