I have two classes:
public class A { B refToB; } public class B { A refToA; }
they do not have unique id fields (which are required for JAX-B XMLID and XMLIDREF).
Object instances:
A a = new A(); B b = new B(); a.refToB = b; b.refToA = a;
I want marshall a in XML to maintain a circular / circular dependency, for example:
<a id="gen-id-0"> <b> <a ref-id="gen-id-0" /> </b> </a>
One of the frameworks I found supports XStream: http://x-stream.imtqy.com/graphs.html
What other frameworks support this feature?
Are some JAX-B implementations supported?
source share