next up previous contents
Next: Specification Up: Datafile Previous: Datafile   Contents

Introduction to XML

The XML has been defined as a superset of the SGML5.5 which is the superset of the HTML. The XML is an application profile or restricted form of the SGML. By construction, XML documents are conforming SGML documents.

An XML document consists of several sections or objects called tags. Each tag looks like:


\begin{displaymath}
<tagname>
\end{displaymath}

It means that here starts a tag which is named $tagname$. The most of tags have theirs ending tags as well. They look like:


\begin{displaymath}
</tagname>
\end{displaymath}

Everything between a starting tag and an ending tag is treated as data which are described by the mentioned tag.

Usually XML documents are text files but they could be also partially binary if appropriate tags are defined.

What is the most important, tags could be recursive (if the specified grammar allows, of course). And this feature is used by the Osiris too.

XML documents may, and should, begin with an XML declaration tag which specifies the version of XML being used. For example, the following is a complete well-formed XML document:

<?xml version="1.0"?>
<greeting>Hello, world!</greeting>

The XML is also called a metalanguage, because it doesn't define a language but it gives certain rules how to create a language which uses tags to define its grammar.


next up previous contents
Next: Specification Up: Datafile Previous: Datafile   Contents
Igor Wojnicki 2001-02-21