HalbeegThe open encyclopediaAf-Soomaali
ArticleTalkReadView history

XML

From Halbeeg, the open encyclopedia · Af-Soomaali

79 languages
XML af
XML an
XML az
XML ba
XML bat-smg
XML be
XML be-x-old
XML bg
XML bs
XML da
XML el
XML en
XML eo
XML et
XML eu
XML fi
XML frr
XML ga
XML gl
XML he
XML hr
XML hu
XML hy
XML ia
XML id
XML is
XML it
XML ja
XML jv
XML ko
XML ky
XML lmo
XML lt
XML lv
XML mk
XML mn
XML ms
XML nn
XML no
XML pl
XML pt
XML ro
XML ru
XML sh
XML si
XML simple
XML sk
XML sl
XML so
XML sq
XML sr
XML sv
XML te
XML tg
XML tk
XML tr
XML uk
XML vec
XML vi
XML wuu
XML zh
XML zh-yue

XML (Extensible Markup Language) is a markup language—a system for writing structured text using tags to separate data. Its purpose is to store information in a form that humans can read and programs can interpret directly. XML itself does not define tag names; the user defines them, which is why it is called 'extensible' or expandable.

XML was published by the W3C (World Wide Web Consortium), the organization that sets web standards. It derives from SGML, an earlier and much more complex markup language; XML is a simplified version. Its first specification was published around the late 1990s.

Structure

An XML document consists of elements that begin with an opening tag like <name> and end with a closing tag like </name>. Each element can have attributes written in the opening tag. Elements nest within each other, forming a tree structure: there is one root element from which the others descend. Comments and a prologue indicating the character encoding (such as UTF-8) can also be used.

Well-formedness and validity

Two levels of correctness are distinguished for XML documents. The first, 'well-formed', means that the general rules of XML syntax are followed: every tag is closed, the tree has a single root, and special characters are properly escaped. The second, 'valid', means that the document conforms to a schema defined beforehand, such as DTD or XML Schema (XSD), which specifies which elements are permitted and their order. The parser—the program that reads XML—performs this checking.

Related technologies

XML has several tools built on it: XPath for finding parts of a document tree, XSLT for transforming an XML document into another form such as HTML, and XQuery for asking more complex questions of it. Namespaces resolve conflicts when two systems use elements with the same name.

Use and competition

XML is used for application configuration files, exchanging data between different systems, and document formats such as RSS and SVG. In recent years, JSON has replaced it in many areas, especially in web APIs, because it uses fewer characters and integrates more easily with JavaScript. XML remains in use, however, where strict schema validation and lengthy documentation are required.

UncertaintyPrecise dates for the publication of XML specifications and any new versions are not given here; consult the official W3C documentation.
Categories:376 words · 0 sources