|
|
|
Re: What's a good way of serializing/deserializing models with embedded EPackage [message #894944 is a reply to message #894923] |
Wed, 11 July 2012 08:16 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Tas,<br>
<br>
Comments below.<br>
<br>
<br>
<div class="moz-cite-prefix">On 11/07/2012 8:16 AM, Tas
Frangoullides wrote:<br>
</div>
<blockquote cite="mid:jtj5nd$ikb$1@xxxxxxxxe.org" type="cite">Hi
Ed,
<br>
Thanks for the response. Maybe I did't explain too well the file
contents. The EPackage does come before the instances of the
eClass declared within it.</blockquote>
Sorry, my fault, I didn't look so closely.<br>
<blockquote cite="mid:jtj5nd$ikb$1@xxxxxxxxe.org" type="cite"> I
can understand that it needs to be that way. So to do the loading
it sounds like registering the EPackage as it is encountered is
the way to go. My question is really asking the right way to do
that. Should I use an XML handler?
<br>
</blockquote>
I wonder if just using this option will solve the problem...<small><br>
</small>
<blockquote><small> /**</small><br>
<small> * Produce an
xsi:schemaLocation/xsi:noNamespaceSchemaLocation in the saved
result.</small><br>
<small> */</small><br>
<small> String OPTION_SCHEMA_LOCATION = "SCHEMA_LOCATION";</small><br>
</blockquote>
I'd expect to result in an xsi:schemaLocation attribute that
specifies the location of the package within this resource and that
by the time it needs to be resolved, i.e., while processing the
xsi:type in <propertyValues xsi:type="scripts_1:scripts"/>, it
should be attached to the resource's content tree and be available
for use.<br>
<br>
Please try that first and let me know who it goes.<br>
<blockquote cite="mid:jtj5nd$ikb$1@xxxxxxxxe.org" type="cite">Thanks,
<br>
Tas.
<br>
</blockquote>
<br>
<br>
</body>
</html>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03569 seconds