Library tutorials & articles

Extensible Markup Language (XML) Tutorial

Introduction

The Extensible Markup Language (XML) is a subset of the Standard Generalised Markup Language (SGML), the standard for creating markup documents. Unlike HTML, another markup language based on SGML, XML allows you to describe data and its structure rather than display it. XML is not a replacement for HTML, but compliments it by allowing the author to describe their own tags. XML is extensible as the author can create an unlimited number of tags. There are no predefined tags in XML.

All XML documents should start with a processing instruction to inform the XML parser of the version of XML being used.

<?xml version="1.0" ?>

XML is incredibly easy to learn! It's just a case of defining the structure of your data, and creating some rules for the data in the form of a Document Type Definition. The usefulness of XML comes from its intrinsic property of separating the data from the presentation.

Comments

  1. 19 Jan 2006 at 14:16

    Beutiful article. Takes a user from a beginner level to an intermediate level very nicely. Certainly a treat for beginers and an expert alike.

  2. 04 Apr 2004 at 22:28

    Good article for starters

  3. 01 Jan 1999 at 00:00

    This thread is for discussions of Extensible Markup Language (XML) Tutorial.

Leave a comment

Sign in or Join us (it's free).

Gez Lemon I'm available for contract work. Please visit Juicify for details.

Related podcasts

  • LINQ to XML

    Scott's been poking around with LINQ to XML and reports his findings to Carl about life with XDocuments and XElements. They also talk about the bridge classes that link (no pun intended) System.Xml and System.Xml.Linq.

Want to stay in touch with what's going on? Follow us on twitter!