"A few people have been thinking about mapping a JDBC ResultSet to an XML representation lately, " Why?
IMHO XML has grown into one heck of a hammer and you know what happens when the only tool you have is a hammer? Everything looks like nails. The only situation I can see (btw, I'm near sighted) a use for a ResultSet as XML is to expose the information in the database to some system/process(es) that doesn't know how to communicate with a database on its own. For those other scenarios keep in mind that most database vendors today and probably all tomorrow will support some form of publishing an XML view of the data. Sorry about the rant, I really like and appreciate dom4j's clean and efficient design. Its a testament to great and elegant OO programming and I would hate to see it bogged down and smashed with the XML hammer mentioned in the first paragraph. Dane Foster Equity Technology Group, Inc http://www.equitytg.com. 954.360.9800 ----- Original Message ----- From: "James Strachan" <[EMAIL PROTECTED]> To: "JSP Insider" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, October 26, 2001 5:50 AM Subject: Re: [dom4j-user] using JDBC results with dom4j Hi Casey A few people have been thinking about mapping a JDBC ResultSet to an XML representation lately, it was mentioned recently on the Jaxen list http://www.mail-archive.com/jaxen-interest%40lists.sourceforge.net/msg00212. html as well as on the standard JSP tag library expert group. I've added this idea to the developers to do list, TODO.txt, in CVS... http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dom4j/dom4j/ So hopefully someone will dive in and get it done at some point. Any developers out there fancy having a go? I would have thought a RowSetElement and a RowElement would be pretty much most of whats needed, with maybe a RowSetList to maintain the list of RowElements using JDBC's row by row access model. James ----- Original Message ----- From: "JSP Insider" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001 8:56 AM Subject: [dom4j-user] using JDBC results with dom4j > I am reviewing the various Java XML API's > > One feature I am looking for is the ability to take a JDBC ResultSet and > have a builder class convert the results straight into the Java XML > representation. > > While I know it would be easy to build such a beast > (for example there is a test module like this at JDOM). > I was wondering if anyone has built such a module for dom4j? Or if such a > feature is planned for dom4j? I haven't seen mention of this feature, but > seems like one which would be extremely useful. > > Thanks for your time. > > > Casey Kochmer > [EMAIL PROTECTED] > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > _______________________________________________ > dom4j-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/dom4j-user > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user
