|
|
|
|
|
|
|
|
|
|
|
Re: Support for establishing a containment reference to an object [message #652195 is a reply to message #652080] |
Thu, 03 February 2011 00:29 |
Ed Merks Messages: 33216 Registered: July 2009 |
Senior Member |
|
|
AJ,
Comments below.
AJ wrote:
> Ed,
>
> Let me see if I understand.
>
> If I use XMLResourceImpl, then do I need to introduce my own root or
> do I need to save each target into its own file so it can be the only
> root?
Yes, you'd have to do one of the two.
>
> It is confusing since XMIResourceImpl seems to contradict your early
> statement, "there can be only one container, so if it's not at the
> root, it already has a container."
These are statements about EObject and EObject.eContainer.
> So if XMIResourceImpl introduces its own root, then the targets will
> have a container.
It dumps "noise" in the XML to satisfy XML's constraint that there be
only one root element. It doesn't introduce new EObjects.
>
> Thanks again!
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03979 seconds