Basics

Almost all Megazine3 and mz3Tool configuration information is stored in so-called XML files. It’s helpful to know the basics of this file type.

What does it mean?

XML files can be read and interpreted programmatically as well as read by humans.
Each information is bracketed with so-called “tags”, which contain the type of information contained.
This might sound familiar, since HTML, uses something very similar to define websites.
HTML files use a markup language XML does. Hence the common abbreviation “… ml” in the file extension.
HTML stands for “HperText Markup Language”, and XML for “eXtensible Markup Language”.

File Structure

Any type of information in text form can be stored in an XML file. The basic principle is simple:

Tags

Each information fragment is enclosed by so-called Tags. Tags act like brackets:
A start tag marks the beginning of the information, and an end tag the end.
Tags contain names. These names identify the information included.

A start tag looks like this: <_name_>
An end tag contains the same name preceded with a slash:

An example of an image tag will clarify this (setting width and source):

<img>
    <width>420</width>
    <height>840</height>
    <src>/images/example.png</src>
</img>

hierarchies

As shown in above example tags can be nested, i.e. a tag can contain other tags.

The image information is summarized by the tag and contains the path in the tag and the image size in the and tags.
Further information can easily be found in the internet googling for key words like “XML structure” or “nested tag”.

Revision: 7
Last modified: 2019/03/27

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment