|
|
|
|
|
Re: Loading XML on the Editor from EMF [message #407575 is a reply to message #407566] |
Mon, 05 March 2007 17:16 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
Malai,
An Ecore to Ecore mapping between the two could be used to solve a
problem like this. There have been quite a few previous questions about
that mapping support, so you could search for those. This particular
problem could be quite easily solved with a derived implementation
BasicExtendedMetaData that overrides getPackage, getLocalElement, and
getLocalAttribute to substitute the new namespace for the old namespace.
Annamalai C wrote:
> Hello ED
>
> I have this typical problem ...
> My model is obtained using XSD as input. Now the XSD has changed a
> little bit but all the old values are still valid ... but in the new
> XSD my namespace has changed.
> So the XML files corresponding to the new XSD have the new namespace
> but the old ones still have the old namespace. So if i load the old
> one it has a different name space .. so crashes ...
>
> Is there any way to suppress the namespace consideration while loading?
>
> regards
> Malai
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04957 seconds