As I see it, there are three main goals of XML:
-
To provide a language that just describes some data.
If it is necessary to describe how this data is to be
displayed
(and in some situations this is not the case),
then this is described in a separate document.
-
To allow
the author to use their own tags.
In this way, it is possible for an author to choose tags that
are appropriate to the data.
-
To insist on the language being used in a correct manner
rather than being tolerant, e.g.,
-
each start tag must have an end tag;
-
the values of attributes must be quoted.