[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: SAX driver for JDBC?


jdbc xml

On Thursday, Jun 12, 2003, at 02:33 US/Central, K. Ari Krupnikov wrote:

> Does anyone know of a SAX wrapper around (SQL) ResultSet? It appears
> pretty straightforward, but I couldn't find anything in the usual
> places.

I've got a pretty simple one. It's much superior to the IBM one, though  
- just takes the raw ResultSet and produces good SAX events rather than  
making silly assumptions about what kind of queries you want to make.  
(My queries tend to be a bit more complex than "select * from table"...)

This is part of a larger project, which you may or may not be  
interested in. There's an overview at  
http://www.slamb.org/projects/xmldb/ . In any case, I designed it so  
you can use small pieces independently of the whole. Patches welcome  
where I've failed.

The Java class lives at  
http://www.slamb.org/svn/repos/projects/xmldb/src/java/org/slamb/xmldb/ 
ResultSetProducer.java

I've got an example xslt stylesheet to transform it to decent-looking  
HTML at  
http://www.slamb.org/svn/repos/projects/mb/src/WEB-INF/xsl/resultset.xsl

Finally, you can see the results in action at http://www.slamb.org/mb/  
. This is a messageboard that has really good code organization and  
relatively little code through use of Jakarta Struts, my xmldb thing  
(which needs a new name), and a framework thing of mine that does some  
of what Apache Cocoon's XSP does, but is much, much simpler.

This stuff is all BSD-licensed. It's not really officially released  
yet; working on that.

Comments, constructive criticism, etc. would be very much appreciated.

Good luck,
Scott Lamb


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.