[gme-users] Changing .xme after renaming elements

Krishnakumar B kitty at dre.vanderbilt.edu
Thu Aug 12 10:44:43 CDT 2004


Hi,

I had to make a change to the meta-model as follows:

Original meta
-------------

A child of element named "ComponentContainer" contained a Reference named
"ComponentType", which referred to a modelProxy named "ComponentDef".
"ComponentDef" is a proxy of model element "Component".

Modified meta
-------------

A child of element named "ComponentContainer" contains a ReferenceProxy
named "ComponentRef", which is a proxy to a Reference named "ComponentRef".
"ComponentRef" refers to the element "Component" which is the same as what
the original "ComponentType" referred to.

When I replace all instances of the word "ComponentType" with
"ComponentRef" in a model developed using the original meta, and try to
import the XML file, the import fails with the message:

Error importing XML file (0x80731001): Improper use of object

I have no ideas as to what element was expected and what was found as the
error message is not very descriptive.

Does anyone know how to achieve what I am trying to do by changing the XME
file so that GME will allow importing the old models? I don't want to redo
all the models by hand again (which will take weeks to complete).

I am at a loss as to how to proceed finding the source of the problem.
AFAICS, there is no change in semantics. No element deletion or addition.

Is there any repository of XSLT scripts that allow such modifications? I am
sure I am not the first person trying to do something like this.

Any help is much appreciated.

-kitty.


More information about the gme-users mailing list