MEGA Administration : Technical Articles (EN) : Description of MEGA Data Exchange XML Format : Format in Detail : Exchanged data description modes : Command exchange: <Commands> tag : • Command exchange
   
Command exchange
<?xml version="1.0" encoding="ISO-8859-1"?>
<MegaExchange>
<Header>
<!-- document information -->
<Attribute metaattribute.name="xmg_version">XMG version 0.1</Attribute>
</Header>
<Commands>
<!-- exchanged commands -->
<Add>
<Object metaclass.name="Procedure" id="1">
<Attribute metaattribute.name="Name">Procedure-1</Attribute>
</Object>
</Add>
</Commands>
</MegaExchange>
 
Content exchange: <Content> tag
Content description mode uses the <Content> tag. This tag contains a collection of objects and links.
These objects and links should be interpreted as independent data free of any context: they are not connected to a particular repository and do not require any other data in order to be significant (except for the metamodel describing them).
Data of an XML exchange document using description mode produces creation commands (creation of described objects and links) when the document is imported.
Order of appearance of tags describing data contained in the <Content> tag is significant. It corresponds to the order in which data must be processed by the MEGA XML document analysis tools.
If a link between two objects appears before one (or both) of the objects themselves, the link description is not valid from a logical viewpoint.