That's where XML comes in. It's a
generic markup language that describes data according to its
structure and purpose, rather than with specific formatting
instructions. The actual presentation information is stored somewhere
else, such as in a stylesheet. What's left is a
functional description of the parts of your document, which is
suitable for many different kinds of processing. With proper use of
XML, your document will be ready for an unlimited variety of
applications and purposes.
Now let's review the basic components of XML. Its
most important feature is the element.
Elements are encapsulated regions of data that serve a unique role in
your document. For example, consider a typical book, composed of a
preface, chapters, appendixes, and an index. In XML, marking up each
of these sections as a unique element within the book would be
appropriate. Elements may themselves be divided into other elements;
you might find the chapter's title, paragraphs,
examples, and sections all marked up as elements. This division
continues as deeply as necessary, so even a paragraph can contain
elements such as emphasized text, quotations, and hypertext links.
A human can read it, but more importantly, a computer program can
read it very easily. The framers of XML have taken great care to
ensure that XML is easy to read by all XML processors, regardless of
the types of tags used or the context. If your markup follows all the
proper syntactic rules, then the XML is absolutely unambiguous. This
makes processing it much easier, since you don't
have to add code to handle unclear situations.