Format in Detail
-
-
-
-
-
-
-
-
-
-
• Object metaclass identification by metaclass name
-
-
-
-
-
-
-
-
• Description of an attribute value
-
-
-
-
-
-
• Document attributes
-
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