XML Introduction

  • Revision slug: XML_Introduction
  • Revision title: XML Introduction
  • Revision id: 120668
  • Created:
  • Creator: Ptak82
  • Is current revision? No
  • Comment /* add <breadcrumbs></breadcrumbs> */

Revision Content

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

What is XML?

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

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

Why HTML Will Not Work

HTML markup is a fixed language, and HTML is for presentation purposes only, where as XML is defined by the user and for content purposes.

HTML is limited to these three aspects: intelligence, maintenance, and adaptation. Where as XML is string in: intelligence, adaptation, maintenance, and simplicity.

XML is also different from HTML, as HTML is for presentation markup, and XML is for general markup. The two could be used together along with XSLT.

"Correct" XML

For an XML document to be correct it must be a well-formed document, which conforms to all of XML's syntax rules. Most browsers, including Mozilla offer a debugger that will often tell about non well-formed documents that it will view or read.

XML Display

There are two different ways that XML can be used for presentation, and this can range from transforming to HTML, to creating PDF or image codes.

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

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

Or with the powerful XSLT, which is capable of transforming XML markup into any number of things, the possibilities are almost endless.

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

Recommendations

Read up on other XML guides and refresh your self on the syntax rules, remember that this guide was a short introduction guide to those new with XML or markup languages.

You should learn the HTML markup language for a better understanding of XML, or to read any number of the guides, found here on developer.mozilla.org.

Document Information

  • Author(s): Justin G. Shreve
  • Last Updated Date: May 19th
{{ wiki.languages( { "pl": "pl/Wprowadzenie_do_XMLa" } ) }}

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, stands for <b>Extensible Markup Language</b>, is <a class="external" href="http://www.w3.org/">W3C recommended</a> markup language for general purpose. XML is also 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>.
</p>
<h3 name="Why_HTML_Will_Not_Work"> Why HTML Will Not Work </h3>
<p>HTML markup is a fixed language, and HTML is for presentation purposes only, where as XML is defined by the user and for content purposes.
</p><p>HTML is limited to these three aspects: intelligence, maintenance, and adaptation. Where as XML is string in: intelligence, adaptation, maintenance, and simplicity.
</p><p>XML is also different from HTML, as HTML is for presentation markup, and XML is for general markup. The two could 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, which conforms to all of XML's syntax rules. Most browsers, including Mozilla offer a debugger that will often tell about non well-formed documents that it will view or read.
</p>
<h3 name="XML_Display"> XML Display </h3>
<p>There are two different ways that XML can be used for presentation, and this can range from transforming to HTML, to creating PDF or image codes.
</p><p>One way to have have a style on a XML page is to use CSS with the xml stylesheet declaration.
</p>
<pre>&lt;?xml-stylesheet type="text/css" href="stylesheet.css"?&gt;</pre>
<p>Or with the powerful XSLT, which is capable of transforming XML markup into any number of things, the possibilities are almost endless.
</p>
<pre>&lt;?xml-stylesheet type="text/xsl" href="transform.xsl"?&gt;</pre>
<h3 name="Recommendations"> Recommendations </h3>
<p>Read up on other XML guides and refresh your self on the syntax rules, remember that this guide was a short introduction guide to those new with XML or markup languages.
</p><p>You should learn the HTML markup language for a better understanding of XML, or to read any number of the guides, found here on developer.mozilla.org.
</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( { "pl": "pl/Wprowadzenie_do_XMLa" } ) }}
Revert to this revision