Show in Frame No Frame
Up Previous Next Title Page Index Contents Search

8.3.2 Importing models from XML

Importing XML models into MetaEdit+ will always create new models, without affecting existing models.

To import data in XML format:
1)Press the Import button on the Launcher toolbar (or alternatively select Repository | Options, activate the Repository tab and press the File in Patches button). This will open a file dialog from which you pick the XML file to be imported.
2)Choose the .mxm file to import and press Open.

Please note that as the XML import file does not contain the metamodel information, you have to make sure that the file to be imported is compliant with your current metamodel.

During import, the XML file is first parsed. If an error occurs at this stage, you will be told the cause of the error and approximate position. After closing the error dialog, you can correct the file and safely attempt to import again.

After parsing, the XML elements are processed, creating new GOPPRR elements. Errors can still occur at this stage: for instance a type name may not exist. If an error occurs at this stage, you will be told the cause of the error and its approximate position, and that you should abandon the current transaction. After closing the error dialog you should thus abandon the transaction, to remove GOPPRR elements that have been only partially imported, and are likely to contain errors.

As with all imports, you should check the imported data after importing, and only commit the transaction if there are no problems.

Show in Frame No Frame
Up Previous Next Title Page Index Contents Search