aspose file tools*
The moose likes XML and Related Technologies and the fly likes Domify ResultSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Domify ResultSet" Watch "Domify ResultSet" New topic
Author

Domify ResultSet

Tony Yan
Ranch Hand

Joined: Apr 10, 2002
Posts: 170
It seems to me that Domify should work well for ResultSet according to the desc./instruction. But when I used it, it just took forever(seems infinite looping) and outputing a lot of junks. It worked with a small test bean, though. Anyone has experience with domifying a ResultSet? I only want to turn a ResultSet that has data into a Source.
Thanks for your inputs in advance.


Tony Yan<br /> <br />IBM Certified Developer XML and Related Technology<br />Sun Certified Web Component Developer For J2EE Platform<br />Sun Certified Programmer For Java 2 Platform
Tony Yan
Ranch Hand

Joined: Apr 10, 2002
Posts: 170
Looks like I have to define some model that builds up the records from the ResultSet.
Tony Yan
Ranch Hand

Joined: Apr 10, 2002
Posts: 170
DOM trees, are, well, trees, whereas Object graphs can be cyclic. Domify does not check for cycles, so if you have cycles in your object graph, the tree will appear to continue on and on and on and on...
Domify has special handling for java.util.Collection and java.util.Map, converts any of the basic java types (int, Integer, String, etc) to text nodes, and treats everything else as a JavaBean. The next version of Domify will have a pluggable arrangement so that special handling can be applied to any class.
 
jQuery in Action, 2nd edition
 
subject: Domify ResultSet