This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I'm looking for some suggestions for ways to create persistent XML in Java. I am working on a piece of a project where I have to move data to and from RDBMS's via XML files. The problem is that the size of the data is fairly unbounded. Going from an XML file to a RDBMS is pretty easy, I just use SAX, where my handler writes to the database at the end of a "row". Going the other way is not as obvious. I want to represent a database table as an XML document. I was using Zeus to do some XML binding, but it (and all other XML binding solutions I've seen) want to create the whole DOM internally, then you're allowed to dump it to a file. The only solution I see is homegrown, where I println a bunch of stuff that I hope looks like valid XML. Are there any tools or other APIs that anyone thinks might help me here? Thanks.