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.
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java XML persistence" Watch "Java XML persistence" New topic
Author

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?
Thanks.
Cindy Glass
"The Hood"
Sheriff

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: http://aspose.com/file-tools
 
subject: Java XML persistence