XML Introduction

  • Revision slug: XML_Introduction
  • Revision title: XML Introduction
  • Revision id: 120676
  • Created:
  • Creator: Mgjbot
  • Is current revision? No
  • Comment robot Adding: [[ja:XML Introduction]]

Revision Content

Summary: This article introduces the 'eXtensible Markup Language' (XML) and tells of it's uses.

What is XML?

XML, which stands for Extensible Markup Language, is a W3C recommended general purpose markup language. XML is a subset of SGML.

Many languages are based on XML; for example XHTML, MathML, SVG, XUL, RSS, and RDF are all based on XML.

Why HTML will not work

HTML markup is a fixed language designed only for presentation purposes, while XML is user-defined and is used to define data content.

HTML is limited to these three areas: intelligence, maintenance, and adaptation. XML is strong in intelligence, adaptation, maintenance, and simplicity.

While XML is different from HTML, the two can be used together along with XSLT.

"Correct" XML

For an XML document to be correct it must be a well-formed document, conforming to all of XML's syntax rules. Most browsers, including Mozilla, offer a debugger that can identify poorly-formed XML documents.

XML display

There are two ways in which XML can be used to aid in presentation, applying to various presentation methods from transforming HTML to creating PDF or image code.

One way to have a style on an XML page is to use CSS with the xml-stylesheet declaration.

<?xml-stylesheet type="text/css" href="stylesheet.css"?>

In combination with the powerful XSLT, which is capable of transforming XML markup into other forms, XML is incredibly versatile.

<?xml-stylesheet type="text/xsl" href="transform.xsl"?>

Recommendations

This article is only a quick introduction to what XML is; for more details about XML, you should look around on the Web for more in-depth articles.

Learning the HTML markup language will help you better understand XML. You should also explore the Mozilla Developer Center for more information.

Document Information

  • Author(s): Justin G. Shreve
  • Last Updated Date: May 19th
{{ wiki.languages( { "fr": "fr/Introduction_\u00e0_XML", "ja": "ja/XML_Introduction", "pl": "pl/Wprowadzenie_do_XML-a", "zh-cn": "cn/XML_\u4ecb\u7ecd" } ) }}

Revision Source

<p>
</p><p><span class="comment">Summary: This article introduces the 'eXtensible Markup Language' (XML) and tells of it's uses.</span>
</p>
<h3 name="What_is_XML.3F"> What is XML? </h3>
<p>XML, which stands for <b>Extensible Markup Language</b>, is a <a class="external" href="http://www.w3.org/">W3C recommended</a> general purpose markup language. XML is a subset of SGML.
</p><p>Many languages are based on XML; for example <a href="en/XHTML">XHTML</a>, <a href="en/MathML">MathML</a>, <a href="en/SVG">SVG</a>, <a href="en/XUL">XUL</a>, <a href="en/RSS">RSS</a>, and <a href="en/RDF">RDF</a> are all based on XML.
</p>
<h3 name="Why_HTML_will_not_work"> Why HTML will not work </h3>
<p>HTML markup is a fixed language designed only for presentation purposes, while XML is user-defined and is used to define data content.
</p><p>HTML is limited to these three areas: intelligence, maintenance, and adaptation. XML is strong in intelligence, adaptation, maintenance, and simplicity.
</p><p>While XML is different from HTML, the two can be used together along with <a class="external" href="http://developer.mozilla.org/docs/XSLT">XSLT</a>.
</p>
<h3 name=".22Correct.22_XML"> "Correct" XML </h3>
<p>For an XML document to be correct it must be a well-formed document, conforming to all of XML's syntax rules. Most browsers, including Mozilla, offer a debugger that can identify poorly-formed XML documents.
</p>
<h3 name="XML_display"> XML display </h3>
<p>There are two ways in which XML can be used to aid in presentation, applying to various presentation methods from transforming HTML to creating PDF or image code.
</p><p>One way to have a style on an XML page is to use CSS with the <code>xml-stylesheet</code> declaration.
</p>
<pre>&lt;?xml-stylesheet type="text/css" href="stylesheet.css"?&gt;</pre>
<p>In combination with the powerful XSLT, which is capable of transforming XML markup into other forms, XML is incredibly versatile.
</p>
<pre>&lt;?xml-stylesheet type="text/xsl" href="transform.xsl"?&gt;</pre>
<h3 name="Recommendations"> Recommendations </h3>
<p>This article is only a quick introduction to what XML is; for more details about XML, you should look around on the Web for more in-depth articles.
</p><p>Learning the HTML markup language will help you better understand XML.  You should also explore the Mozilla Developer Center for more information.
</p>
<div class="originaldocinfo">
<h3 name="Document_Information"> Document Information </h3>
<ul><li> Author(s): Justin G. Shreve
</li><li> Last Updated Date: May 19th 
</li></ul>
</div>
{{ wiki.languages( { "fr": "fr/Introduction_\u00e0_XML", "ja": "ja/XML_Introduction", "pl": "pl/Wprowadzenie_do_XML-a", "zh-cn": "cn/XML_\u4ecb\u7ecd" } ) }}
Revert to this revision