Thanks for the link,
I suppose there is no way to document/constraint in the XSD the target type,
and avoid code generator to create refID attributes as "Object" ?

Nicolas




2009/5/11 Benson Margulies <[email protected]>

> https://*jaxb*.dev.java.net/guide/Mapping_cyclic_references_to_XML.html
>
> On Mon, May 11, 2009 at 6:10 AM, nicolas de loof <[email protected]>
> wrote:
>
> > Hi,
> > My data structure is a graph (not a tree) so I expected JAXB / CXF to
> > automagically detect my bean allready has been serialized and to use
> idRefs
> > to make a reference when it's uses from another structure.
> >
> > root
> >  |_ Child
> >  |_ AnotherChild
> >          \_ "firends" = Child  // Expected and idRef here
> >
> > Is there something I'have to set in my XML Schema / JABX binding / CXF
> > configuration to achieve this ?
> >
> > Best regards,
> > Nicolas
> >
>

Reply via email to