MEGA Administration : Technical Articles (EN) : Description of MEGA Data Exchange XML Format : Format in Detail
   
Format in Detail
 
MEGA data exchange XML document structure
Physical structure
Logical structure
Exchanged data description modes
Command exchange: <Commands> tag
Content exchange: <Content> tag
Commands description: <Add>, <Delete>, <Replace> tags
• Object and link creation commands
Object Descriptions
• Object metaclass identification by metaclass name
Command Mode
Content Mode
Object identification mechanisms
Link description
Hierarchical link in content mode
Other links
Description of attribute values
• Description of an attribute value
Attribute value format
Translatable attributes and attribute value expression language
MEGA XML format extensions
Example of use of the <Extension> tag by MEGA
Attributes of MEGA XML documents used by MEGA
• Document attributes
Document attributes list
In the remainder of this document, MEGA data exchange XML format will be referred to as "MEGA XML".
MEGA data exchange XML document structure
Physical structure
Like all XML documents, MEGA XML documents must start with XML declaration:
<?xml version="1.0"?>.
Encoding can be specified using the "encoding" attribute.
<?xml version="1.0" encoding="ISO-8859-1"?>
MEGA XML documents should be expressed in a code supported by the applications used to process them. For example, before importing a MEGA XML document it should be confirmed that MEGA can handle documents in the encoding proposed. MEGA import, like any XML analyzer, can basically handle input of Unicode encodings: UTF-8, UTF-16 little endian and big endian and ASCII. Other encodings such as ISO Latin1 FR can be used.
Note: see XML specifications for values to be specified for the "encoding" attribute (ref. Extensible Markup Language (XML) 1.0: http://www.w3.org/TR/2004/REC-xml-20040204/), and MEGA documentation to determine supported encodings.
Note: values that can be specified for the "encoding" attribute to identify the different encodings:
"ISO-8859-1" corresponds to ISO Latin-1 FR encoding
"UTF-8" corresponds to Unicode encoding on one or several bytes per character
"UTF-16" corresponds to Unicode encoding on a multiple of two bytes per character
Logical structure
Like all XML documents, MEGA XML documents can have only one root tag, its name being <MegaExchange>.
A MEGA XML document firstly contains information relating to the document itself, such as the document creation date, the format version used or the attribute value expression language. This information is described in a <Header> tag.
In addition, information exchanged must be expressed either in a <Commands> tag, or in a <Content> tag