<?xml-stylesheet href="../make-menu.xsl?cache=20260710" type="text/xsl"?>
<html>
    <head>
        <this-is section="technology" page="introducing-xml" subpage=""></this-is>
        <title>Saxonica: Introduction to XML</title>
        <meta name="title" content="Saxonica: Introduction to XML" />
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <meta name="description" content="" />
        <meta name="keywords" content="XSLT, XQuery, XPath, Processor, XSD Schema, Saxonica, license, validator, XML, Saxon, EXPath" />
        <meta name="coverage" content="Worldwide" />
        <meta name="copyright" content="Copyright Saxonica Ltd" />
        <meta name="robots" content="index, follow" />
    </head>
    <body class="main">
        <a id="xml" class="anchor"/>
        <h1>Introduction to XML</h1>
        <h3>XML is for publishing, XML is for exchanging data</h3>
        <p>
            <b class="definition">XML</b> is a notation that represents the logical structure of a document by using a
            series of tags (known as markup) within the document. These make it easier to automate
            the processing of the content of the document. It is used both for narrative documents
            (such as web pages) and for data messages (such as financial transactions). </p>
        <p>XML is an open standard, developed by the <a class="bodylink" href="https://www.w3.org">W3C</a>
            (World Wide Web Consortium) and adopted by all major software vendors as a standard for
            structured information exchange.</p>
        <p> XML allows document authors to choose their own tags, appropriate to the kind of
            information represented in the document. An <b class="definition">XML Schema</b> (itself a type of XML
            document) defines your XML vocabulary i.e. the tags that are used and the rules for what
            can appear within each tag. </p>
        <p>In effect the tags enable the document to be self-describing – see below for a simple
            example of XML markup. </p>
        <pre class="codeblock"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
    <books>
        <book category="reference">
            <publisher>National Geographic</publisher>
            <title>The National Geographic Atlas of the World</title>
            <price>40.00</price>
            <format>hardback</format>
        </book>
        <book category="fiction">
            <author>J. K. Rowling</author>
            <title>Harry Potter and the Philosopher's Stone</title>
            <price>6.99</price>
            <format>paperback</format>
        </book>
    </books>]]></pre>
        
        <p>XML is now widely used both as a format for maintaining published documents, and as a
            protocol for exchanging data between applications, often between different
            organizations. It became successful because it can handle information of arbitrary
            complexity, yet at the same time it is essentially a very simple (and therefore
            inexpensive) technology.</p>
        <p> The rules for particular kinds of XML documents can be written
            and agreed by means of an <b class="definition">XML Schema</b>, allowing errors to be detected automatically, and
            because XML documents are human-readable, it is very easy to find and resolve problems
            when they occur.</p>
        <p>XML is also easy to integrate into business applications, thanks to the wide availability
            of XML parsers on popular platforms such as Java and .NET, and the increasing number of
            software packages (from relational databases to office desktop applications) that are
            now XML-enabled "out of the box".</p>
        
        <div id="fixed-aside">
            <h2>See also:</h2>
            <ul>
                <li><a href="xslt-and-xquery.xml">Introduction to XSLT and XQuery</a></li>
                <li><a href="questions.xml">Answers to frequently asked questions</a></li>
                <li><a href="publications.xml">Our publications</a></li>
                <li><a href="w3c.xml">W3C conformance information</a></li>
            </ul>
        </div>
    </body>
</html>
