File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XMLEncoder not serializing the whole graph!

Anne Forumer
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this class which is a composite of other classes. One of the composite, Role is itself a composite of class, Recipient. But the XMLEncoder stops at Role and doesn't go any further. All classes are serializable. I am using XMLEncoder in a "regular" way and printing to a file. Should I be doing anything special to output the complete graph?

Thanks in Advance.

Here is the "central" class:

Role contains Recipients:

The XML output is:

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic