This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes How to convert java object into xml .Object contains contains cyclic references Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "How to convert java object into xml .Object contains contains cyclic references " Watch "How to convert java object into xml .Object contains contains cyclic references " New topic
Author

How to convert java object into xml .Object contains contains cyclic references

santro
Greenhorn

Joined: Sep 20, 2006
Posts: 5
Hi,

How to convert java object into xml .Conside this case ,if Object contains cyclic references like circular linked list. I tried with Jaxb2.0 and castor0.9.5.3.Jaxb and castor is working fine for simple java objects, not working for circular linked list type objects. Please help me .

Thanks in Advance,

Santa
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18670
As I recall, XStream handles circular graphs just fine. One limitation is that you don't have much control over the specific XML format used. Well, you can change some things easily, but not others. If this is important to you, you may want to use XStream for an initial transformation, followed by XSLT to make whatever changes you need to the format.


"I'm not back." - Bill Harding, Twister
santro
Greenhorn

Joined: Sep 20, 2006
Posts: 5
Hi JIM,

THANK YOU VERY MUCH

Thanks,

Santa Rao
 
I agree. Here's the link: http://jrebel.com/download
 
subject: How to convert java object into xml .Object contains contains cyclic references
 
Similar Threads
Ways for WL8.1 to serialize Java objects with circular references into XML
Circular Linked List
cyclic reference in gc
Object reference graphs containing cycles can be serialized??
Pointers in Java