The eXtensible Markup Language (XML) is a meta-markup language defined by the World Wide Web Consortium (W3C). It is not strictly a markup language itself, but rather a set of rules for creating markup languages. For our purposes a markup language is any language (HTML, for example) that uses tags surrounding text to convey information such as content or format. CNXML, the markup language used by the Connexions Project is an example of a language written in XML. There are many other examples at the W3C site. Here is an example of some markup in CNXML.
<para>
This is a paragraph in <term>CNXML</term>. Notice that the
markup contains tags that express the meaning of the text.
</para>
<para> and
</para> are the tags that the
enclose the text. In XML, tags are always marked by angle
brackets (also known as < and
>). Tags generally come
in pairs: an opening tag will look like
<tagname>. A closing tag will look
like </tagname>, with a
/ preceding the tag name.
XML allows the separation of presentation from content. HTML
has tags such as <u> and
<i>, which underline and italicize
text respectively. There is no content information expressed,
only formatting. XML allows you to define your own language
of tags to represent content. You could create a tag called
<book> to represent book titles,
and create a stylesheet (a separate formatting document), that
says that every <book> tag should
be italicized or underlined. Then when you want to change the
presentation of that type of content, you just change one
small part of the stylesheet. Also, if you make tags that
convey the content of the document, you can enable better
searching. For example, you might look for the md:author of a
document by looking at the md:author tag.




