You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Radu Preotiuc-Pietro <ra...@bea.com> on 2005/12/05 21:04:42 UTC

RE: How does xmlbeans marshall object graphs

I think you have answered the question yourself. XML in general cannot
express object graphs, just tree structures. XMLBeans being a generic
XML tool has this constraint too, so you basically need to encode the
graph structure inside your app (and maybe use key/keyref constraints if
you want to enforce this using validation).

Thanks,
Radu

-----Original Message-----
From: olle pettersson [mailto:olle.pettersson@googlemail.com] 
Sent: Sunday, November 20, 2005 3:23 PM
To: user@xmlbeans.apache.org
Subject: How does xmlbeans marshall object graphs


Hi,

I have tried to save an xml-document with one Java object occuring in
two different places. xmlbeans just copies the object (creates two
identical xml tags) rather than using some kind of reference. How does
xmlbeans handle whole object graphs?

Thanks,

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org