This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Java XML persistence Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java XML persistence" Watch "Java XML persistence" New topic

Java XML persistence

john guthrie
Ranch Hand

Joined: Aug 05, 2002
Posts: 124
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?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Moving to the XML forum.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: Java XML persistence
It's not a secret anymore!