Content deleted Content added
JavaWoman (talk | contribs)
m History: Obviously incorrect date, cf. URL
Rescuing 1 sources and tagging 0 as dead.) #IABot (v2.0.9.5
 
Line 1:
{{pp|small=yes}}
<!--
{{Other uses}}{{Short description|Markup language by the W3C for encoding of data}}
Warning to AutoWikiBrowser users: do not attempt to Unicodify this page as many of the &# notations are in context and should not be converted to their glyph representations.
{{Infobox technology standard
 
| title = XML (standard)
Don't change "Extensible" to "eXtensible"! See http://www.xml.com/axml/notes/TheCorrectTitle.html from the Annotated XML Specification.
| image = Extensible Markup Language (XML) logo.svg
 
| first_published = {{Start date and age|1998|2|10}}
Elements not tags! For instance, <!ELEMENT> vs <!TAG>.
| status = Published, [[W3C recommendation]]
-->
| year_started = {{Start date and age|1996}}
{{intro-rewrite}}
| editors = [[Tim Bray]], [[Jean Paoli]], [[Michael Sperberg-McQueen]], Eve Maler, François Yergeau, [[John W. Cowan]]
| base_standards = [[SGML]]
| long_name = Extensible Markup Language
| related_standards = [[W3C XML Schema]]
| abbreviation = XML
| ___domain = [[Serialization]]
| version = 1.1 (2nd ed.)
| version_date = {{Start date and age|2006|9|29}}
| organization = [[World Wide Web Consortium]] (W3C)
}}
{{Infobox file format
| name = XML (file format)
| icon =
| logo =
| screenshot = [[Image:XML.svg|200px]]
| extension = .xml
|_nomimecode = on
| mime = application/xml, text/xml (deprecated)
| mime = <code>application/xml</code>, <code>text/xml</code><ref>{{cite IETF |first1=H.|last1=Thompson|first2=C.|last2=Lilley|rfc=7303 |title=XML Media Types |publisher=Internet Engineering Task Force |date=July 2014}}</ref>
| type code =
| uniform typeuniform_type = public.xml
| conforms_to = public.text
| magic =
| magic = <code><?xml</code>
| owner = [[World Wide Web Consortium]]
| genre = [[Markup language]]
| extended_from = [[SGML]]
| container for =
| extended_to = [[List of XML markup languages|Numerous languages]], including [[XHTML]], [[RSS]], [[Atom (web standard)|Atom]], and [[KML]]
| contained by =
| standard = {{Plainlist|
| extended from = [[Standard Generalized Markup Language|SGML]]
* [http://www.w3.org/TR/2008/REC-xml-20081126/ 1.0, 5th ed.] ({{release date|2008|11|26}})
| extended to = [[XHTML]], [[RSS]], [[Atom (standard)|Atom]], [[List of XML markup languages|...]]
| standard = [http://www.w3.org/TR/2008/REC-xml-20081126/ 1.0 (Fifth Edition)]* [http://www.w3.org/TR/2006/REC-xml11-20060816/ 1.1, 2nd ed.] (Second{{release Editiondate|2006|08|16}})]
}}
| open = Yes
| free = Yes
}}
'''Extensible Markup Language''' ('''XML''') is a [[markup language]] and [[file format]] for storing, transmitting, and reconstructing data. It defines a set of rules for encoding [[electronic document|documents]] in a format that is both [[human-readable]] and [[Machine-readable data|machine-readable]]. The [[World Wide Web Consortium]]'s XML 1.0 Specification{{sfnp|Bray|Paoli|Sperberg-McQueen|Maler|2008}} of 1998<ref>{{cite web|editor1-first=T.|editor1-last=Bray|editor2-first=J.|editor2-last=Paoli|editor3-first=C. M.|editor3-last=Sperberg-McQueen|publisher=W3C|title=Extensible Markup Language (XML) 1.0|edition=1st|format=W3C Recommendation|url=https://www.w3.org/TR/1998/REC-xml-19980210.html |date=10 February 1998}}</ref> and several other related specifications<ref>{{cite book|last1=Bikakis|first1=N.|last2=Tsinaraki|first2=C.|last3=Gioldasis|first3=N.|last4=Stavrakantonakis|first4=I.|last5=Christodoulakis|first5=S.|year=2013|title=Semantic Hyper/Multimedia Adaptation: Schemes and Applications|isbn=978-3-642-28977-4|chapter=The XML and Semantic Web Worlds: Technologies, Interoperability and Integration: A Survey of the State of the Art|chapter-url=https://www.researchgate.net/publication/236857003|pages=319–360|series=Studies in Computational Intelligence|volume=418|editor1-last=Anagnostopoulos|editor1-first=I.|editor2-last=Bieliková|editor2-first=M.|editor3-last=Mylonas|editor3-first=P.|editor4-last=Tsapatsoulis|editor4-first=N.|publisher=Springer|___location=Berlin|doi=10.1007/978-3-642-28977-4_12}}</ref>—all of them free [[open standard]]s—define XML.<ref>{{cite web |title=Document license – 2015 version |url=https://www.w3.org/Consortium/Legal/2015/doc-license|website=W3C|access-date=24 July 2020}}</ref>
 
The design goals of XML emphasize simplicity, generality, and usability across the [[Internet]].{{sfnp|Bray|Paoli|Sperberg-McQueen|Maler|2008|loc=section 1.1}} It is a textual data format with strong support via [[Unicode]] for different [[human languages]]. Although the design of XML focuses on documents, the language is widely used for the representation of arbitrary [[data structure]]s,<ref>{{cite journal |title=Extremes of XML |first=Philip |last=Fennell |date=June 2013 |journal=XML London 2013 |doi=10.14337/XMLLondon13.Fennell01 |url=http://xmllondon.com/2013/presentations/fennell/ |pages=80–86 |article-number=8 |doi-broken-date=12 July 2025 |isbn=978-0-9926471-0-0|doi-access=free |url-status=dead |archive-url=https://web.archive.org/web/20230301154911/https://xmllondon.com/2013/presentations/fennell/ |archive-date= Mar 1, 2023 }}</ref> such as those used in [[web service]]s.<ref name="WhatIs">{{Cite web|first1=P.|last1=Loshin|first2=D.|last2=Linthicum|first3=M.|last3=Giza|title=What is XML (Extensible Markup Language)?|url=https://www.techtarget.com/whatis/definition/XML-Extensible-Markup-Language |date=October 2021|website=TechTarget WhatIs|publisher=Informa|language=en}}</ref>
'''XML''' ('''Extensible Markup Language''') is a general-purpose ''specification'' for creating custom [[markup language]]s which specifies [[lexical grammar]] and [[parsing]] requirements. The term ''extensible'' is used to indicate that a markup-language designer has significant freedom in the choice of markup elements.<ref name="The Correct Title">{{cite web|title=The Correct Title|url=http://www.xml.com/axml/notes/TheCorrectTitle.html|accessdate=July 2009}}</ref>
 
Several [[XML schema|schema systems]] exist to aid in the definition of XML-based languages, while programmers have developed many [[application programming interface]]s (APIs) to aid the processing of XML data.
XML's goals<ref name="XML Goals">{{cite web|title=XML 1.0 Origin and Goals|url=http://www.w3.org/TR/REC-xml/#sec-origin-goals|accessdate=July 2009}}</ref> emphasize simplicity, generality, and usability over the [[Internet]]. XML has been used as the basis for hundreds of custom-designed languages.<ref name="Cover pages list">{{cite web|url=http://xml.coverpages.org/xmlApplications.html|title=XML Applications and Initiatives}}</ref> Some of these, for example [[RSS]], [[Atom (standard)|Atom]], and [[XHTML]], have become widely used on the Internet. XML dialects (often packaged in archive files) are becoming the default file format for office-productivity software packages, including [[Microsoft Office]], [[OpenOffice.org]], [[AbiWord]], and [[Apple Computer|Apple]]'s [[iWork]].
 
== Overview ==
XML is a fee-free [[open standard]]<ref>{{cite web|title=W3C® DOCUMENT LICENSE|url=http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231}}</ref> [[W3C recommendation|recommended]] by the [[World Wide Web Consortium]] (W3C).<ref name="XML spec">{{cite web|title=Extensible Markup Language (XML) 1.0|url=http://www.w3.org/TR/REC-xml/|accessdate=July 2009}}</ref>
The main purpose of XML is [[serialization]], i.e. storing, transmitting, and reconstructing arbitrary data. For two disparate systems to exchange information, they need to agree upon a file format. XML standardizes this process. It is therefore analogous to a [[lingua franca]] for representing information.{{sfnp|Dykes|2005|p=1}}
 
As a [[markup language]], XML labels, categorizes, and structurally organizes information.{{sfnp|Dykes|2005|p=11}} XML tags represent the data structure and contain [[metadata]]. What is within the tags is data, encoded in the way the XML standard specifies.{{sfnp|Dykes|2005|p=11}} An additional [[XML schema]] (XSD) defines the necessary metadata for interpreting and validating XML. (This is also referred to as the canonical schema.){{sfnp|Dykes|2005|p=135}} An XML document that adheres to basic XML rules is "well-formed"; one that adheres to its schema is "valid".{{sfnp|Dykes|2005|p=135}}
==Meanings of the term==
The term "XML" is used colloquially to describe a variety of technologies, including:
# the syntax and rules defined by the W3C XML specification(s);
# any vocabulary (markup language) based on the XML specification; and
# XML technology in general, such as the collection of XML languages, parsers, tools and APIs applied to a particular problem set, as in "we are using XML for information exchange".
 
{{anchor|Media types}}[[History of the Internet#Internet Engineering Task Force|IETF]] [[:RFC:7303|RFC 7303]] (which supersedes the older [[:RFC:3023|RFC 3023]]), provides rules for the construction of [[media type]]s for use in XML message. It defines three media types: <code>application/xml</code> (<code>text/xml</code> is an alias), <code>application/xml-external-parsed-entity</code> (<code>text/xml-external-parsed-entity</code> is an alias) and <code>application/xml-dtd</code>. They are used for transmitting raw XML files without exposing their internal [[semantics]]. RFC 7303 further recommends that XML-based languages be given media types ending in <code>+xml</code>, for example, <code>image/svg+xml</code> for [[SVG]].
The majority of this article concerns the first meaning. Wikipedia contains numerous articles covering many of the specific XML languages and technologies. See the [[:Category:XML|XML Category]].
 
Further guidelines for the use of XML in a networked context appear in [[:RFC:3470|RFC 3470]], also known as IETF BCP 70, a document covering many aspects of designing and deploying an XML-based language.<ref name="WhatIs" />
==Key concepts and components==
The material in this section is based on the [http://www.w3.org/TR/REC-xml XML Specification]. This is not an exhaustive list of all the constructs which appear in XML; it provides an introduction to the key constructs most often encountered in day-to-day use.
 
== Applications ==
===(Unicode) Character===
XML has come into common use for the interchange of data over the Internet. Hundreds of document formats using XML syntax have been developed,<ref>{{cite web|url=http://xml.coverpages.org/xmlApplications.html|title=XML Applications and Initiatives|editor-first=Robin|editor-last=Cover|website=XML Cover Pages|access-date=16 November 2017|archive-date=2 May 2024|archive-url=https://web.archive.org/web/20240502080359/http://xml.coverpages.org/xmlApplications.html|url-status=dead}}</ref> including [[RSS]], [[Atom (web standard)|Atom]], [[Office Open XML]], [[OpenDocument]], [[SVG]], [[COLLADA]], and [[XHTML]]. XML also provides the base language for [[communication protocol]]s such as [[SOAP]] and [[XMPP]]. It is one of the message exchange formats used in the [[Ajax (programming)|Asynchronous JavaScript and XML (AJAX)]] programming technique.
By definition, an XML document is a string of characters. Almost every legal [[Unicode]] character may appear in an XML document.
 
Many industry data standards, such as [[Health Level 7]], [[OpenTravel Alliance]], [[FpML]], [[MISMO]], and the [[National Information Exchange Model]] are based on XML and the rich features of the XML schema specification. In publishing, [[Darwin Information Typing Architecture]] is an XML industry data standard. XML is used extensively to underpin various publishing formats.
===Processor and Application===
Software which processes an XML document. It is expected that a processor works in the service of an application. There are certain very specific requirements about what an XML processor must do and not do, but none as to the behavior of the application. The processor (as the specification calls it) is often referred to colloquially as an ''XML parser''.
 
One of the applications of XML in science is the representation of operational meteorology information based on [[IWXXM]] standards.<ref name="WMO2023_manual">{{cite book
===Markup and Content===
| author = [[World Meteorological Organization]] (WMO)
The characters which make up an XML document are divided into ''markup'' and ''content''. Markup and content may be distinguished by the application of simple syntactic rules. All strings which constitute markup begin either with the character '''&lt;''' and end with the next '''&gt;''', or begin with the character '''&amp;''' and end with the character ''';'''. Strings of characters which are not markup are content.
| title = Manual on Codes, Volume I.3 – International Codes, Annex II to the WMO Technical Regulations, Part D – Representations derived from data models
| publisher = WMO
| ___location = Geneva
| year = 2023
| isbn = 978-92-63-10306-2
| url = https://library.wmo.int/idurl/4/35769
| series = Basic Documents No. 2
| type = Manual
| pages = 272
| language = English
}}</ref>
 
== Key terminology ==
===Tag===
The material in this section is based on the XML [[Specification]]. This is not an exhaustive list of all the constructs that appear in XML; it provides an introduction to the key constructs most often encountered in day-to-day use.
A markup construct that begins with '''&lt;''' and ends with '''>'''. Tags come in three flavors: ''start-tags'', for example '''&lt;section>''', ''end-tags'', for example '''&lt;/section>''', and ''empty-element tags'', for example '''&lt;line-break/>'''.
 
;{{visible anchor|Character}}: An XML document is a string of ''characters''. [[Valid characters in XML#Characters allowed but discouraged|Every]] legal [[Unicode]] character (except Null) may appear in an (1.1) XML document (while some are discouraged).
===Element===
A logical component of a document which either begins with a start-tag and ends with an end-tag, or consists only of an empty-element tag. The characters between the start- and end-tags, if any, are the element's ''content'', and may contain markup, including other elements, which are called ''child elements''. An example of an element is '''&lt;Greeting>Hello,&nbsp;world.&lt;/Greeting>'''. Another is '''&lt;line-break/>'''.
 
;{{visible anchor|Processor and application}}: The ''processor'' analyzes the markup and passes structured information to an ''application''. The specification places requirements on what an XML processor must do and not do, but the application is outside its scope. The [[Process (computing)|processor]] (as the specification calls it) is often referred to colloquially as an ''XML [[Parsing|parser]]''.
===Attribute===
A markup construct consisting of a name/value pair that exists within a start-tag or empty-element tag. In this example, the name of the attribute is ''number'' and the value is ''3'': '''&lt;step&nbsp;number="3">Connect&nbsp;A&nbsp;to&nbsp;B.&lt;/step>''' This element has two attributes, ''src'' and ''alt'': '''<img&nbsp;src="madonna.jpg"&nbsp;alt='by&nbsp;Raphael'/>''' An element may not have two attributes with the same name.
 
;{{visible anchor|Markup and content}}: The characters making up an XML document are divided into ''markup'' and ''content'', which may be distinguished by the application of simple [[Phrase structure rules|syntactic rules]]. Generally, strings that constitute markup either begin with the character <code>&lt;</code> and end with a <code>></code>, or they begin with the character <code>&</code> and end with a <code>;</code>. Strings of characters that are not markup are content. However, in a [[CDATA]] section, the delimiters <code>&lt;![CDATA[</code> and <code>]]></code> are classified as markup, while the text between them is classified as content. In addition, whitespace before and after the outermost element is classified as markup.
===XML Declaration===
This is a carefully-formatted string which is often found at the very beginning of XML documents. Here is an example:
<?xml version="1.0" encoding='ISO-8859-1'?>
 
;{{visible anchor|Tag}}: A ''tag'' is a markup construct that begins with <code>&lt;</code> and ends with <code>></code>. There are three types of tag:
Here is a small, complete XML document, which uses all of these constructs and concepts.
:* ''start-tag'', such as <code>&lt;section></code>;
:* ''end-tag'', such as <code>&lt;/section></code>;
:* ''empty-element tag'', such as <code>&lt;line-break /></code>.
 
;{{visible anchor|Element}}: An ''element'' is a logical document component that either begins with a start-tag and ends with a matching end-tag or consists only of an empty-element tag. The characters between the start-tag and end-tag, if any, are the element's ''content'', and may contain markup, including other elements, which are called ''child elements''. An example is <code>&lt;greeting>Hello, world!&lt;/greeting></code>. Another is <code>&lt;line-break&nbsp;/></code>.
<source lang="xml">
<?xml version="1.0" encoding='ISO-8859-1'?>
<painting>
<img src="madonna.jpg" alt='Foligno Madonna, by Raphael'/>
<caption>This is Raphael's "Foligno" Madonna, painted
in <date>1511</date>-<date>1512</date>.</caption>
</painting></source>
 
;{{visible anchor|Attribute}}: An ''attribute'' is a markup construct consisting of a [[name–value pair]] that exists within a start-tag or empty-element tag. An example is <code>&lt;img src="madonna.jpg" alt="Madonna" /></code>, where the names of the attributes are "src" and "alt", and their values are "madonna.jpg" and "Madonna" respectively. Another example is <code>&lt;step number="3">Connect A to B.&lt;/step></code>, where the name of the attribute is "number" and its value is "3". An XML attribute can only have a single value and each attribute can appear at most once on each element. In the common situation where a list of multiple values is desired, this must be done by encoding the list into a well-formed XML attribute{{efn-lr|i.e., embedded quote characters would be a problem}} with some format beyond what XML defines itself. Usually this is either a comma or semi-colon delimited list or, if the individual values are known not to contain spaces,{{efn-lr|A common example of this is [[CSS]] class or identifier names.}} a space-delimited list can be used. An example with space as a delimiter is <code>&lt;div class="inner greeting-box">Welcome!&lt;/div></code>, where the attribute "class" both has the value "inner greeting-box" and also indicates the two [[CSS]] class names "inner" and "greeting-box".
There are four elements in this example document. '''date''' is a child of '''caption''' which is a child of '''painting'''.
<!--
We'll get to all this stuff later
 
;{{visible anchor|XML declaration}}: XML documents may begin with an ''XML declaration'' that describes some information about themselves. An example is <code>&lt;?xml version="1.0" encoding="UTF-8"?></code>.
===Processing instruction===
The software that is reading an XML document is referred to as a ''processor''. A ''processing instruction'' is additional information embedded in the document to inform the processor and possibly change its behaviour.
 
== Characters and escaping ==
===Comment===
XML documents consist entirely of characters from the [[Unicode]] repertoire. Except for a small number of specifically excluded [[control characters]], any character defined by Unicode may appear within the content of an XML document.
An XML comment begins with the characters: less-than, exclamation mark, minus, minus; and ends with the characters: minus, minus, greater-than. Any text within a comment is intended for a human reader and is ignored by the processor.
 
XML includes facilities for identifying the ''encoding'' of the Unicode characters that make up the document, and for expressing characters that, for one reason or another, cannot be used directly.
===Entity===
An ''entity'' is a compact form that represents other text. Entities are used to specify problematic characters and to include slabs of text defined elsewhere. An entity reference consists of an ampersand, a name, and a semi-colon.
-->
 
=== Valid characters ===
==Characters and escaping==
{{Main|Valid characters in XML}}
The design of XML relies heavily on the character repertoire provided by [[Unicode]]. Except for a small number of specifically identified "control characters", any character defined by Unicode may appear within the content of an XML document. The selection of characters which may appear within markup is somewhat more limited but still large.
Unicode code points in the following ranges are valid in XML 1.0 documents:{{sfnp|Bray|Paoli|Sperberg-McQueen|Maler|2008|loc=section 2.2}}
* U+0009 (Horizontal Tab), U+000A (Line Feed), U+000D (Carriage Return): these are the only [[C0 and C1 control codes|C0]] controls accepted in XML 1.0;
* U+0020–U+D7FF, U+E000–U+FFFD: this excludes some noncharacters in the [[Basic Multilingual Plane|BMP]] (all surrogates, U+FFFE and U+FFFF are forbidden);
* U+10000–U+10FFFF: this includes all code points in supplementary planes, including noncharacters.
 
XML 1.1 extends the set of allowed characters to include all the above, plus the remaining characters in the range U+0001–U+001F.{{sfnp|Bray|Paoli|Sperberg-McQueen|Maler|2006|loc=section 2.2}} At the same time, however, it restricts the use of C0 and [[C0 and C1 control codes|C1]] control characters other than U+0009 (Horizontal Tab), U+000A (Line Feed), U+000D (Carriage Return), and U+0085 (Next Line) by requiring them to be written in escaped form (for example U+0001 must be written as <code>&amp;#x01;</code> or its equivalent). In the case of C1 characters, this restriction is a backwards incompatibility; it was introduced to allow common encoding errors to be detected.
XML includes facilities for identifying the ''encoding'' of the Unicode characters which make up the document, and for storing characters which, for one reason or another, cannot be used directly.
 
The code point [[U+0000]] (Null) is the only character that is not permitted in any XML 1.1 document.
===Encoding detection===
The Unicode character set can be encoded into bytes for storage in a variety of different ways, called "encodings". Unicode itself defines encodings which cover the entire repertoire; well-known ones include [[UTF-8]] and [[UTF-16]].<ref>{{cite web|url=http://www.tbray.org/ongoing/When/200x/2003/04/26/UTF|title=Characters vs. Bytes}}</ref> There are many other text encodings which pre-date Unicode, such as [[ASCII]] and [[ISO/IEC 8859]]; their character repertoires in almost every case have been included in the Unicode character set.
 
=== Encoding detection ===
XML allows the use of any of the Unicode-defined encodings, and any other encodings whose characters also appear in Unicode. XML also provides a mechanism whereby an XML processor can reliably, without any prior knowledge, determine which encoding is being used.<ref>{{cite web|url=http://www.w3.org/TR/REC-xml/#sec-guessing|title=Autodetection of Character Encodings}}</ref>
The Unicode character set can be encoded into [[byte]]s for storage or transmission in a variety of different ways, called "encodings". Unicode itself defines encodings that cover the entire repertoire; well-known ones include [[UTF-8]] (which the XML standard recommends using, without a [[byte order mark|BOM]]) and [[UTF-16]].<ref>{{cite web|last=Bray|first=T.|url=http://www.tbray.org/ongoing/When/200x/2003/04/26/UTF|title=Characters vs. Bytes|website=Tbray.org |date=April 26, 2003 |access-date=16 November 2017}}</ref> There are many other text encodings that predate Unicode, such as [[ASCII]] and various [[ISO/IEC 8859]]; their character repertoires are in every case subsets of the Unicode character set.
 
XML allows the use of any of the Unicode-defined encodings and any other encodings whose characters also appear in Unicode. XML also provides a mechanism whereby an XML processor can reliably, without any prior knowledge, determine which encoding is being used.{{sfnp|Bray|Paoli|Sperberg-McQueen|Maler|2008|loc=appendix F}} Encodings other than UTF-8 and UTF-16 are not necessarily recognized by every XML parser (and in some cases not even UTF-16, even though the standard mandates it to also be recognized).
===Escaping===
There are a variety of reasons why it may be difficult or impossible to include some character directly in an XML document. For example, the characters '''&lt;''' and '''&amp;''' are key syntax markers and may ''never'' appear in content. Also, it is legal to encode an XML document in ASCII, but ASCII has no encoding for many Unicode characters, for example '''é'''.
 
=== Escaping ===
For these reasons, XML provides facilities for ''escaping'' problematic characters. There are five ''predefined entities'': '''&amp;lt;''' represents '''&lt;''', '''&amp;gt;''' represents '''>''', '''&amp;amp;''' represents '''&amp;''', '''&amp;apos;''' represents '''&#x27;''', and '''&amp;quot;''' represents '''"'''. Also, any Unicode character may be identified with a '''[[numeric character reference]]'''. Consider the Chinese character '''中''', whose numeric code in Unicode is hexadecimal 4E2D, or decimal 20,013. It may be referred to as '''&amp;#20013;''' or '''&amp;#x4e2d;'''.
XML provides ''[[Escape sequence|escape]]'' facilities for including characters that are problematic to include directly. For example:
* The characters "&lt;" and "&" are key syntax markers and may never appear in content outside a [[CDATA]] section. It is allowed, but not recommended, to use "&lt;" in XML entity values.{{sfnp|Bray|Paoli|Sperberg-McQueen|Maler|2008|loc=section 2.3}}
* Some character encodings support only a subset of Unicode. For example, it is legal to encode an XML document in ASCII, but ASCII lacks code points for Unicode characters such as "é".
* It might not be possible to type the character on the author's machine.
* Some characters have [[homoglyph|glyphs]] that cannot be visually distinguished from other characters, such as the [[nonbreaking space]] (<code>&amp;#xa0;</code>) " " and the [[Space (punctuation)|space]] (<code>&amp;#x20;</code>) " ", and the [[А|Cyrillic capital letter A]] (<code>&amp;#x410;</code>) "А" and the [[A|Latin capital letter A]] (<code>&amp;#x41;</code>) "A".
 
There are five [[List of XML and HTML character entity references#Predefined entities in XML|predefined entities]]:
Thus, the string "I &lt;3 Jörg" could be encoded for inclusion in an XML document as "I &amp;lt;3 J&amp;#xF6;rg".
* <code>&amp;lt;</code> represents "&lt;";
* <code>&amp;gt;</code> represents "&gt;";
* <code>&amp;amp;</code> represents "&";
* <code>&amp;apos;</code> represents "{{mono|'}}";
* <code>&amp;quot;</code> represents '{{mono|"}}'.
 
All permitted Unicode characters may be represented with a ''[[numeric character reference]]''. Consider the Chinese character "中", whose numeric code in Unicode is hexadecimal 4E2D, or decimal 20,013. A user whose keyboard offers no method for entering this character could still insert it in an XML document encoded either as <code>&amp;#20013;</code> or <code>&amp;#x4e2d;</code>. Similarly, the string "I &lt;3 Jörg" could be encoded for inclusion in an XML document as <code>I &amp;lt;3 J&amp;#xF6;rg</code>.
==Well-formedness and error-handling==
The XML specification defines an XML document as a text which is [[Well-formed element|well-formed]], i.e., it satisfies a list of syntax rules provided in the specification. The list is fairly lengthy; some key points are:
 
<code>&amp;#0;</code> is not permitted because the [[null character]] is one of the control characters excluded from XML, even when using a numeric character reference.<ref>{{cite web|first1=Tex|last1=Texin|first2=François|last2=Yergeau|date=6 September 2003|url=http://www.w3.org/International/questions/qa-controls|title=W3C I18N FAQ: HTML, XHTML, XML and Control Codes|website=W3C Internationalization|publisher=W3C|access-date=16 November 2017}}</ref> An alternative encoding mechanism such as [[Base64]] is needed to represent such characters.
* It contains only properly-encoded legal Unicode characters.
* None of the special syntax characters such as '''&lt;''' and '''&amp;''' appear except when performing their markup-delineation roles.
* The begin, end, and empty-element tags which delimit the elements are correctly nested, with none missing and none overlapping.
* There is a single "root" element which contains all the other elements.
 
=== Comments ===
The definition of an ''XML document'' excludes texts which contain violations of well-formedness rules; they are simply not XML. An XML processor which encounters such a violation is required to report such errors and to cease normal processing. This policy, occasionally referred to as [[Draconian]], stands in notable contrast to the behavior of programs which process [[HTML]], which are designed to produce a reasonable result even in the presence of severe markup errors. XML's policy in this area has been criticized as a violation of [[Postel's law]].<ref>{{cite web|url=http://diveintomark.org/tag/draconian|title=Articles tagged with “draconian”}}</ref> <!-- keep for possible reuse
Comments may appear anywhere in a document outside other markup. Comments cannot appear before the XML declaration. Comments begin with <code>&lt;!--</code> and end with <code>--&gt;</code>. For compatibility with [[SGML]], the string "--" (double-hyphen) is not allowed inside comments;{{sfnp|Bray|Paoli|Sperberg-McQueen|Maler|2008|loc=section 2.5}} this means comments cannot be nested. The ampersand has no special significance within comments, so entity and character references are not recognized as such, and there is no way to represent characters outside the character set of the document encoding.
Here is an example of a structured XML document:
 
An example of a valid comment:
<source lang="xml">
<code>&lt;!--no need to escape &lt;code&gt; &amp; such in comments--&gt;</code>
<recipe name="bread" prep_time="5 mins" cook_time="3 hours">
<title>Basic bread</title>
<ingredient amount="8" unit="dL">Flour</ingredient>
<ingredient amount="10" unit="grams">Yeast</ingredient>
<ingredient amount="4" unit="dL" state="warm">Water</ingredient>
<ingredient amount="1" unit="teaspoon">Salt</ingredient>
<instructions>
<step>Mix all ingredients together.</step>
<step>Knead thoroughly.</step>
<step>Cover with a cloth, and leave for one hour in warm room.</step>
<step>Knead again.</step>
<step>Place in a bread baking tin.</step>
<step>Cover with a cloth, and leave for one hour in warm room.</step>
<step>Bake in the oven at 180(degrees)C for 30 minutes.</step>
</instructions>
</recipe>
</source>
<source lang="xml">
!-- Not well-formed fragment --
<title>Book on Logic<author>Aristotle</title></author>
</source>
 
=== International use ===
One way of writing the same information in a way which could be incorporated into a well-formed XML document is as follows:
{{Contains special characters|Armenian|example}}
 
XML 1.0 (Fifth Edition) and XML 1.1 support the direct use of almost any [[Unicode]] character in element names, attributes, comments, character data, and processing instructions (other than the ones that have special symbolic meaning in XML itself, such as the less-than sign, "<"). The following is a well-formed XML document including [[Chinese character|Chinese]], [[Armenian alphabet|Armenian]] and [[Cyrillic]] characters:
<source lang="xml">
<syntaxhighlight lang="xml">
!-- Well-formed XML fragment --
<?xml version="1.0" encoding="UTF-8"?>
<title>Book on Logic</title> <author>Aristotle</author>
<俄语 լեզու="ռուսերեն">данные</俄语>
</source>
</syntaxhighlight>
 
== Syntactical correctness and error-handling ==
===Entity references===
{{Main|Well-formed document}}
An [[SGML entity|entity]] in XML is a named body of data, usually text. Entities are often used to represent single characters that cannot easily be entered on the keyboard; they are also used to represent pieces of standard ("boilerplate") text that occur in many documents, especially if there is a need to allow such text to be changed in one place only.
 
The XML specification defines an XML document as a [[Well-formed element|well-formed]] text, meaning that it satisfies a list of syntax rules provided in the specification. Some key points include:
Special characters can be represented either using [[SGML entity|entity]] references, or by means of [[numeric character reference]]s. An example of a numeric character reference is "<code>&amp;#x20AC;</code>", which refers to the [[Euro symbol]] by means of its [[Unicode]] codepoint in [[hexadecimal]].
* The document contains only properly encoded legal Unicode characters.
* None of the special syntax characters such as <code>&lt;</code> and <code>&amp;</code> appear except when performing their markup-delineation roles.
* The start-tag, end-tag, and empty-element tag that delimit elements are correctly nested, with [[tag omission|none missing]] and none overlapping.
* Tag names are case-sensitive; the start-tag and end-tag must match exactly.
* Tag names cannot contain any of the characters <code>!"#$%&amp;'()*+,/;&lt;=&gt;?@[\]^`{|}~</code>, nor a space character, and cannot begin with "-", ".", or a numeric digit.
* A single root element contains all the other elements.
 
The definition of an XML document excludes texts that contain violations of well-formedness rules; they are simply not XML. An XML processor that encounters such a violation is required to report such errors and to cease normal processing.<ref name="quovadis">{{cite conference|first=Maik|last=Stührenberg|date=February 2013|title=Quo vadis XML? History and possible future directions of the Extensible Markup Language|conference=XML Prague 2013|___location=Prague|isbn=978-80-260-3872-6|pages=141–162|conference-url=https://archive.xmlprague.cz/2012/files/xmlprague-2012-proceedings.pdf}}</ref><ref name="bray 2005">{{cite journal|first=Jim|last=Gray|date=1 February 2005|title=A Conversation with Tim Bray: Searching for ways to tame the world's vast stores of information|journal=Queue|volume=3|number=1|pages=20–25|doi=10.1145/1046931.1046941|doi-access=free|s2cid=23502115}}</ref> This policy, occasionally referred to as "[[Draco (lawgiver)|draconian]] error handling", stands in notable contrast to the behavior of programs that process [[HTML]], which are designed to produce a reasonable result even in the presence of severe markup errors.<ref>{{cite book|first=Mark|last=Pilgrim|date=6 August 2010|title=HTML5: Up and Running: Dive into the Future of Web Development|url=https://books.google.com/books?id=Mk3sW0on7OAC|publisher=O'Reilly|isbn=978-1-4493-9966-5|page=10}}</ref> XML's policy in this area has been criticized as a violation of [[Postel's law]] ("Be conservative in what you send; be liberal in what you accept").<ref>{{cite web|url=http://diveintomark.org/archives/2004/01/08/postels-law|archive-url=https://web.archive.org/web/20110514120305/http://diveintomark.org/archives/2004/01/08/postels-law|archive-date=2011-05-14|title=There are No Exceptions to Postel's Law [dive into mark&#93;|website=DiveIntoMark.org|access-date=22 April 2013}}</ref>
An entity reference is a [[placeholder]] that represents that entity. It consists of the entity's name preceded by an [[ampersand]] ("<code>&amp;</code>") and followed by a [[semicolon]] ("<code>;</code>"). XML has five [[predeclared]] entities:
 
The XML specification defines a [[XML validation|valid XML document]] as a [[well-formed XML document]] which also conforms to the rules of a [[Document Type Definition]] (DTD).{{sfnp|Harold|Means|2002|p=29}}
* <code>&amp;amp;</code> (& or "ampersand")
* <code>&amp;lt;</code> (&lt; or "less than")
* <code>&amp;gt;</code> (&gt; or "greater than")
* <code>&amp;apos;</code> (' or "apostrophe")
* <code>&amp;quot;</code> (" or "quotation mark")
 
== Schemas and validation ==
Here is an example using a predeclared XML entity to represent the ampersand in the name "AT&amp;T":
In addition to being well formed, an XML document may be ''valid''. This means that it contains a reference to a [[Document Type Definition]] (DTD), and that its elements and attributes are declared in that DTD and follow the grammatical rules for them that the DTD specifies.
<source lang="xml">
<company_name>AT&amp;T</company_name>
</source>
Additional entities (beyond the predefined ones) can be declared in the document's [[XML#DTD|Document Type Definition (DTD)]]. A basic example of doing so in a minimal internal DTD follows. Declared entities can describe single characters or pieces of text, and can reference each other.
 
XML processors are classified as ''validating'' or ''non-validating'' depending on whether or not they check XML documents for validity.{{sfnp|Harold|Means|2002|p=8}} A processor that discovers a validity error must be able to report it, but may continue normal processing.
<span class="source-xml">
<span class="sc3"><span class="re1">&lt;?xml</span> <span class="re0">version</span>=<span class="st0">"1.0"</span> <span class="re0">encoding</span>=<span class="st0">"UTF-8"</span><span class="re2">?&gt;</span></span>
<span class="sc0">&lt;!DOCTYPE example [</span>
<span class="sc0"> &lt;!ENTITY copy "&amp;#xA9;"&gt;</span>
<span class="sc0"> &lt;!ENTITY copyright-notice "Copyright &amp;copy; 2009, XYZ Enterprises"&gt;</span>
<span class="sc0">]&gt;</span>
<span class="sc3"><span class="re1">&lt;example<span class="re2">&gt;</span></span></span>
<span class="sc1"> &amp;copyright-notice;</span>
<span class="sc3"><span class="re1">&lt;/example<span class="re2">&gt;</span></span></span>
</span>
 
A DTD is an example of a ''[[XML schema|schema]]'' or ''grammar''. Since the initial publication of XML 1.0, there has been substantial work in the area of schema languages for XML. Such schema languages typically constrain the set of elements that may be used in a document, which attributes may be applied to them, the order in which they may appear, and the allowable parent/child relationships.
When viewed in a suitable browser, the XML document above appears as:
 
=== Document type definition ===
{{Quotation|Copyright © 2009, XYZ Enterprises}}
{{Main|Document type definition}}
The oldest schema language for XML is the [[document type definition]] (DTD), inherited from SGML.
 
DTDs have the following benefits:
====Numeric character references====
* DTD support is ubiquitous due to its inclusion in the XML 1.0 standard.
Numeric character references look like entity references, but instead of a name, they contain the "<code>[[number sign|#]]</code>" character followed by a number. The number (in decimal or "<code>x</code>"-prefixed [[hexadecimal]]) represents a Unicode code point. Unlike entity references, they are neither predeclared nor do they need to be declared in the document's DTD. They have typically been used to represent characters that are not easily encodable, such as an [[Arabic language|Arabic]] character in a document produced on a European computer. The ampersand in the "AT&amp;T" example could also be [[escape character|escaped]] like this (decimal 38 and hexadecimal 26 both represent the Unicode code point for the "&amp;" character):
* DTDs are terse compared to element-based schema languages and consequently present more information in a single screen.
<source lang="xml">
* DTDs allow the declaration of [[SGML entity|standard public entity sets]] for publishing characters.
<company_name>AT&#38;T</company_name>
* DTDs define a ''document type'' rather than the types used by a namespace, thus grouping all constraints for a document in a single collection.
<company_name>AT&#x26;T</company_name>
</source>
 
DTDs have the following limitations:
Similarly, in the previous example, notice that "&amp;#xA9;" is used to generate the “©” symbol.
* They have no explicit support for newer [[feature (software design)|features]] of XML, most importantly [[XML Namespace|namespaces]].
* They lack expressiveness. XML DTDs are simpler than SGML DTDs and there are certain structures that cannot be expressed with regular grammars. DTDs only support rudimentary datatypes.
* They lack readability. DTD designers typically make heavy use of parameter entities (which behave essentially as textual [[macro (computer science)|macros]]), which make it easier to define complex grammars, but at the expense of clarity.
* They use a syntax based on [[regular expression]] syntax, inherited from SGML, to describe the schema. Typical XML APIs such as [[Simple API for XML|SAX]] do not attempt to offer applications a structured representation of the syntax, so it is less accessible to programmers than an element-based syntax may be.
 
Two peculiar features that distinguish DTDs from other schema types are the syntactic support for embedding a DTD within XML documents and for defining ''entities'', which are arbitrary fragments of text or markup that the XML processor inserts in the DTD itself and in the XML document wherever they are referenced, like character escapes.
See also [[numeric character reference]]s.
 
DTD technology is still used in many applications because of its ubiquity.
===Well-formed documents===
In XML, a [[well-formed element|well-formed]] document must conform to the following rules, among others:
 
=== Schema ===
* Non-empty elements are [[delimiter|delimited]] by both a start-tag and an end-tag.
{{Main|XML Schema (W3C)}}
* Empty elements may be marked with an empty-element (self-closing) tag, such as <code>&lt;IAmEmpty/></code>. This is equal to <code>&lt;IAmEmpty&gt;&lt;/IAmEmpty&gt;</code>.
* All attribute values are quoted with either single (') or double (") quotes. Single quotes close a single quote and double quotes close a double quote.<ref>{{cite web|title=XML Attributes|url=http://www.w3schools.com/Xml/xml_attributes.asp|publisher=W3Schools}}</ref><ref>{{cite web|title=Attributes [XML Standards]|url=http://msdn.microsoft.com/en-us/library/ms256152(VS.85).aspx|publisher=Microsoft}}</ref>
* To include a double quote inside an attribute value that is double quoted, or a single quote inside an attribute value that is single quoted, escape the inner quote mark using [[#Entity references|entity references]].
* Tags may be nested but must not overlap. Each non-root element must be completely contained in another element.
* The document complies with its declared character encoding. The encoding may be declared or implied externally, such as in "Content-Type" headers when a document is transported via [[Hypertext Transfer Protocol|HTTP]], or internally, using explicit markup at the very beginning of the document. When no such declaration exists, a Unicode encoding is assumed, as defined by a Unicode [[Byte-order mark|Byte Order Mark]] before the document's first character. If the mark does not exist, UTF-8 encoding is assumed.
 
A newer schema language, described by the W3C as the successor of DTDs, is [[XML Schema (W3C)|XML Schema]], often referred to by the [[initialism]] for XML Schema instances, XSD (XML Schema Definition). XSDs are far more powerful than DTDs in describing XML languages. They use a rich [[Data type|datatyping]] system and allow for more detailed constraints on an XML document's logical structure. XSDs also use an XML-based format, which makes it possible to use ordinary XML tools to help process them.
Element names are case-sensitive. For example, the following is a well-formed matching pair:
:<code>&lt;Step></code> ... <code>&lt;/Step></code>
whereas these are not
:<code>&lt;Step></code> ... <code>&lt;/step></code>
:<code>&lt;STEP></code> ... <code>&lt;/step></code>
 
xs:schema element that defines a schema:
By carefully choosing the names of the XML elements one may convey the meaning of the data in the [[Markup language|markup]]. This increases human readability while retaining the rigor needed for software parsing.
<syntaxhighlight lang="xml">
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"></xs:schema>
</syntaxhighlight>
 
=== RELAX NG ===
Choosing meaningful names implies the [[semantics]] of elements and attributes to a human reader without reference to external documentation. However, this can lead to verbosity, which complicates [[authoring]] and increases [[file size]].
{{Main|RELAX NG}}
 
[[RELAX NG]] (Regular Language for XML Next Generation) was initially specified by [[OASIS (organization)|OASIS]] and is now a standard (Part 2: ''Regular-grammar-based validation'' of [[DSDL|ISO/IEC 19757 – DSDL]]). RELAX NG schemas may be written in either an XML based syntax or a more compact non-XML syntax; the two syntaxes are [[isomorphic]] and [[James Clark (programmer)|James Clark]]'s conversion tool—[http://www.thaiopensource.com/relaxng/trang.html Trang]—can convert between them without loss of information. RELAX NG has a simpler definition and validation framework than XML Schema, making it easier to use and implement. It also has the ability to use [[datatype]] framework [[Plug-in (computing)|plug-ins]]; a RELAX NG schema author, for example, can require values in an XML document to conform to definitions in XML Schema Datatypes.
===Automatic verification===
It is relatively simple to verify that a document is well-formed or validated XML, because the rules of well-formedness and validation of XML are designed for portability of tools. The idea is that any tool designed to work with XML files will be able to work with XML files written in any XML language (or XML application). Here are some examples of ways to verify XML documents:
* load it into an XML-capable browser, such as [[Mozilla Firefox|Firefox]] or [[Internet Explorer]]
* use a tool like xmlwf (usually bundled with [[Expat (XML)|expat]])
* parse the document, for instance in [[Ruby programming language|Ruby]]:
<source lang="ruby">
irb> require "rexml/document"
irb> include REXML
irb> doc = Document.new(File.new("test.xml")).root
</source>
-->
 
=== Schematron ===
==Schemas and validation==
[[Schematron]] is a language for making [[assertion (computing)|assertions]] about the presence or absence of patterns in an XML document. It typically uses [[XPath]] expressions. Schematron is now a standard (Part 3: ''Rule-based validation'' of [[DSDL|ISO/IEC 19757 – DSDL]]).
In addition to being well-formed, an XML document may be ''valid''. This means that it contains a reference to a [[Document Type Definition|Document Type Definition (DTD)]], and that its elements and attributes are declared in that DTD and follow the grammatical rules for them that the DTD specifies.
 
XML processors are classified as ''validating'' or ''non-validating'' depending on whether or not they check XML documents for validity. A processor which discovers a validity error must be able to report it, but may continue normal processing.
 
A DTD is an example of a '''schema language'''. Since the initial publication of XML 1.0, there has been substantial work in the area of schema languages for XML. Such schema languages typically constrain the set of elements that may be used in a document, which attributes may be applied to them, the order in which they may appear, and the allowable parent/child relationships.
 
===DTD===
{{Main|Document Type Definition}}
The oldest schema format for XML is the [[Document Type Definition]] (DTD), inherited from SGML. While DTD support is ubiquitous due to its inclusion in the XML 1.0 standard, it is seen as limited for the following reasons:
 
* It has no support for newer [[feature]]s of XML, most importantly [[XML Namespace|namespaces]].
* It lacks expressiveness. Certain constraints commonly applied to XML documents cannot be expressed in a DTD.
* It uses only a custom non-XML syntax, inherited from [[SGML]], to describe the schema.
 
Two peculiar features that distinguish DTDs from other schema types are the syntactic support for embedding a DTD within XML documents and for defining '''''entities''''', which are arbitrary fragments of text and/or markup that the XML processor inserts in the DTD itself and in the XML document wherever they are referenced, like character escapes.
 
DTD technology is still used in many applications because of its ubiquity.
 
===XML Schema===
{{Main|XML Schema (W3C)}}
A newer [[XML schema]] language, described by the W3C as the successor of DTDs, is [[XML Schema (W3C)|XML Schema]], often referred to by the [[acronym and initialism|initialism]] for XML Schema instances, XSD (XML Schema Definition). XSDs are far more powerful than DTDs in describing XML languages. They use a rich [[datatype|datatyping]] system and allow for more detailed constraints on an XML document's logical structure. XSDs also use an XML-based format, which makes it possible to use ordinary XML tools to help process them.
 
===RELAX NG===
{{Main|RELAX NG}}
[[RELAX NG]] was initially specified by [[OASIS (organization)|OASIS]] and is now also an ISO international standard (as part of [[DSDL]]). RELAX NG schemas may be written in either an XML based syntax or a more compact non-XML syntax; the two syntaxes are isomorphic and [[James Clark (XML expert)|James Clark]]'s [[Trang conversion tool]] can convert between them without loss of information. RELAX NG has a simpler definition and validation framework than XML Schema, making it easier to use and implement. It also has the ability to use [[datatype]] framework [[plug-in]]s; a RELAX NG schema author, for example, can require values in an XML document to conform to definitions in XML Schema Datatypes.
 
===ISO DSDL and other schema languages ===
The ISO [[DSDL]] (Document Schema DescriptionDefinition Languages) is a multi-part ISO/IEC standard (ISO/IEC 19757) that brings together a comprehensive set of small schema languages, each targeted at specific problems. DSDL includes [[RELAX NG]] full and compact syntax, [[Schematron]] assertion language, and languages for defining datatypes, character repertoire constraints, renaming and entity expansion, and namespace-based [[routing]] of document fragments to different validators. DSDL schema languages do not have the vendor support of XML Schemas yet, and are to some extent a grassroots reaction of industrial publishers to the lack of utility of XML Schemas for [[publishing]].
 
Some schema languages not only describe the structure of a particular XML format but also offer limited facilities to influence processing of individual XML files that conform to this format. DTDs and XSDs both have this ability; they can for instance provide the [[infoset]] augmentation facility and attribute defaults. RELAX NG and Schematron intentionally do not provide these.
 
== Related specifications ==
<!-- Keep these examples, find a place for them
A cluster of specifications closely related to XML have been developed, starting soon after the initial publication of XML 1.0. It is frequently the case that the term "XML" is used to refer to XML together with one or more of these other technologies that have come to be seen as part of the XML core.
===International use===
* [[XML namespace]]s enable the same document to contain XML elements and attributes taken from different vocabularies, without any [[naming collision]]s occurring. Although XML Namespaces are not part of the XML specification itself, virtually all XML software also supports XML Namespaces.
XML supports the direct use of almost any [[Unicode]] character in element names, attributes, comments, character data, and processing instructions (other than the ones that have special symbolic meaning in XML itself, such as the open corner bracket, "<"). Therefore, the following is a well-formed XML document, even though it includes both [[Chinese character|Chinese]] and [[Cyrillic alphabet|Cyrillic]] characters:
* [[XML Base]] defines the <code>xml:base</code> attribute, which may be used to set the base for resolution of relative URI references within the scope of a single XML element.
<source lang="xml">
* [[XML Information Set]] or XML Infoset is an abstract data model for XML documents in terms of ''information items''. The infoset is commonly used in the specifications of XML languages, for convenience in describing constraints on the XML constructs those languages allow.
<?xml version="1.0" encoding="UTF-8"?>
* [[XSL]] (Extensible Stylesheet Language) is a family of languages used to transform and render XML documents, split into three parts:
<俄語>Китайська мова</俄語>
** [[XSLT]] (XSL Transformations), an XML language for transforming XML documents into other XML documents or other formats such as HTML, plain text, or XSL-FO. XSLT is very tightly coupled with XPath, which it uses to address components of the input XML document, mainly elements and attributes.
</source>
** [[XSL-FO]] (XSL Formatting Objects), an XML language for rendering XML documents, often used to generate PDFs.
-->
** [[XPath]] (XML Path Language), a non-XML language for addressing the components (elements, attributes, and so on) of an XML document. XPath is widely used in other core-XML specifications and in programming libraries for accessing XML-encoded data.
 
* [[XQuery]] (XML Query) is an XML query language strongly rooted in XPath and XML Schema. It provides methods to access, manipulate and return XML, and is mainly conceived as a query language for [[XML database]]s.
==Related specifications==
* [[XML Signature]] defines syntax and processing rules for creating [[digital signature]]s on XML content.
A cluster of specifications closely related to XML have been developed, starting soon after the initial publication of XML 1.0. It is frequently the case that the term "XML" is used to refer to XML and a few of these other technologies which have come to be seen as part of the XML core.
* [[XML Encryption]] defines syntax and processing rules for [[encrypting]] XML content.
 
* XML model (Part 11: ''Schema Association'' of [[DSDL|ISO/IEC 19757 – DSDL]]) defines a means of associating any xml document with any of the schema types mentioned [[#Schemas and validation|above]].
*[[XML Namespace]]s enable the same document to contain XML elements and attributes taken from different vocabularies, without any [[naming collision]]s occurring. Essentially all software which is advertised as supporting XML also supports XML Namespaces.
* [[XML Base]] defines the xml:base attribute, which may be used to set the base for resolution of relative URI references within the scope of a single XML element.
* The [[XML Information Set]] or ''XML infoset'' describes an abstract data model for XML documents in terms of ''information items''. The infoset is commonly used in the specifications of XML languages, for convenience in describing constraints on the XML constructs those languages allow.
*[http://www.w3.org/TR/xml-id/ xml:id] allows an author to confer ID-ness (in the sense used in a DTD) on an attribute, by naming it xml:id.
* [[XPath]] defines a syntax named ''XPath expressions'' which identify one or more of the internal components (elements, attributes, and so on) included in an XML document. XPath is widely used in other core-XML specifications and in programming libraries for accessing XML-encoded data.
* [[XSLT]] is an XML-based syntax for declarative description of transformations to be applied to XML documents.
*[[XQuery]] is an XML-oriented query language strongly rooted in XPath and XML Schema. It provides methods to access, manipulate and return XML.
*[[XML Signature]] defines syntax and processing rules for creating [[digital signatures]] on XML content.
*[[XML Encryption]] defines syntax and processing rules for [[encryption|encrypting]] XML content. <!--
* [[XPointer]] is a system for addressing components of XML-based internet media. -->
 
Some other specifications conceived as part of the "XML Core" have failed to find wide adoption, including [[XInclude]], [[XLink]], and [[XPointer]].
 
== Programming interfaces ==
==Use on the Internet==
The design goals of XML include, "It shall be easy to write programs which process XML documents."{{sfnp|Bray|Paoli|Sperberg-McQueen|Maler|2008|loc=section 1.1}} Despite this, the XML specification contains almost no information about how programmers might go about doing such processing. The [[XML Infoset]] specification provides a vocabulary to refer to the constructs within an XML document, but does not provide any guidance on how to access this information. A variety of [[API]]s for accessing XML have been developed and used, and some have been standardized.
It is common for XML to be used in interchanging data over the Internet. RFC 3023 gives rules for the construction of [[Internet media type|Internet Media Types]] for use when sending XML. It also defines the types "application/xml" and "text/xml", which say only that the data is in XML, and nothing about its semantics. The use of "text/xml" has been criticized as a potential source of encoding problems and is now in the process of being deprecated.<ref>{{cite web|url=http://lists.xml.org/archives/xml-dev/200407/msg00208.html |title=xml-dev&nbsp;— Fw: An I-D for text/xml, application/xml, etc |publisher=Lists.xml.org |date=2004-07-25 |accessdate=2009-07-31}}</ref> RFC 3023 also recommends that XML-based languages be given media types beginning in "application/" and ending in "+xml"; for example "application/svg+xml" for [[SVG]].
 
Further guidelines for the use of XML in a networked context may be found in RFC 3470, also known as IETF BCP 70; this document is very wide-ranging and covers many aspects of designing and deploying an XML-based language.
 
==Programming interfaces==
The design goals of XML include "It shall be easy to write programs which process XML documents."<ref name="XML Goals"/> Despite this fact, the XML specification contains almost no information about how programmers might go about doing such processing. The [[XML Infoset]] provides a vocabulary to refer to the constructs within an XML document, but once again does not provide any guidance on how to access this information. A variety of [[API]]s for accessing XML have been developed and used, and some have been standardized.
 
Existing APIs for XML processing tend to fall into these categories:
* Stream-oriented APIs accessible from a programming language, for example [[Simple API for XML|SAX]] and [[StAX]].
* Tree-traversal APIs accessible from a programming language, for example [[DOM (XML API)|DOM]] and [http://www.xom.nu/ XOM].
* [[XML data binding]], which provides an automated translation between an XML document and programming-language objects.
* Declarative transformation languages such as [[XSLT]] and [[XQuery]].
* Syntax extensions to general-purpose programming languages, for example [[LINQ]] and [[Scala (programming language)|Scala]].
 
Stream-oriented facilities require less memory and, for certain tasks which are based on a linear traversal of an XML document, are faster and simpler than other alternatives. Tree-traversal and data-binding APIs are typically require the use of much more memory, but are often found more convenient for use by programmers; some include declarative retrieval of document components via the use of XPath expressions.
 
XSLT is designed for declarative description of XML document transformations, and has been widely implemented both in server-side packages and Web browsers. XQuery overlaps XSLT in its functionality, but is designed more for searching of large [[XML database]]s.
 
=== Simple API for XML (SAX)===
{{Main|Simple API for XML}}
[[Simple API for XML|SAX]] is a [[lexical analysis|lexical]], [[Event-driven programming|event-driven]] interface in which a document is read serially and its contents are reported as "[[callback]]s" to various [[method (computer science)|method]]s on a [[event handler|handler object]] of the user's design. SAX is fast and efficient to implement, but difficult to use for extracting information at random from the XML, since it tends to burden the application author with keeping track of what part of the document is being processed. It is better suited to situations in which certain types of information are always handled the same way, no matter where they occur in the document.
 
[[Simple API for XML]] (SAX) is a [[Lexical analysis|lexical]], [[Event-driven programming|event-driven]] API in which a document is read serially and its contents are reported as [[callbacks]] to various [[Method (computer science)|methods]] on a [[Event handler|handler object]] of the user's design. SAX is fast and efficient to implement, but difficult to use for extracting information at random from the XML, since it tends to burden the application author with keeping track of what part of the document is being processed. It is better suited to situations in which certain types of information are always handled the same way, no matter where they occur in the document.
===Pull parsing===
Pull parsing<ref>[http://www.xml.com/pub/a/2005/07/06/tr.html Push, Pull, Next!] by Bob DuCharme, at XML.com</ref> treats the document as a series of items which are read in sequence using the Iterator design pattern. This allows for writing of [[recursive descent parser|recursive-descent parsers]] in which the structure of the code performing the parsing mirrors the structure of the XML being parsed, and intermediate parsed results can be used and accessed as local variables within the methods performing the parsing, or passed down (as method parameters) into lower-level methods, or returned (as method return values) to higher-level methods. Examples of pull parsers include [[StAX]] in the [[Java (programming language)|Java]] programming language, [[SimpleXML]] in [[PHP]] and System.Xml.XmlReader in .NET.
 
=== Pull parsing ===
A pull parser creates an iterator that sequentially visits the various elements, attributes, and data in an XML document. Code which uses this 'iterator' can test the current item (to tell, for example, whether it is a start or end element, or text), and inspect its attributes (local name, [[XML namespace|namespace]], values of XML attributes, value of text, etc.), and can also move the iterator to the 'next' item. The code can thus extract information from the document as it traverses it. The recursive-descent approach tends to lend itself to keeping data as typed local variables in the code doing the parsing, while SAX, for instance, typically requires a parser to manually maintain intermediate data within a stack of elements which are parent elements of the element being parsed. Pull-parsing code can be more straightforward to understand and maintain than SAX parsing code.
Pull parsing treats the document as a series of items read in sequence using the [[Iterator pattern|iterator design pattern]]. This allows for writing of [[recursive descent parser]]s in which the structure of the code performing the parsing mirrors the structure of the XML being parsed, and intermediate parsed results can be used and accessed as local variables within the functions performing the parsing, or passed down (as function parameters) into lower-level functions, or returned (as function return values) to higher-level functions.<ref>{{cite web|url=http://www.xml.com/pub/a/2005/07/06/tr.html|title=Push, Pull, Next!|first=Bob|last=DuCharme|website=Xml.com|access-date=16 November 2017}}</ref> Examples of pull parsers include Data::Edit::Xml in [[Perl]], [[StAX]] in the [[Java (programming language)|Java]] programming language, XMLPullParser in [[Smalltalk]], XMLReader in [[PHP]], ElementTree.iterparse in [[Python (programming language)|Python]], SmartXML in [[Red (programming language)|Red]], System.Xml.XmlReader in the [[.NET Framework]], and the DOM traversal API (NodeIterator and TreeWalker).
 
A pull parser creates an iterator that sequentially visits the various elements, attributes, and data in an XML document. Code that uses this iterator can test the current item (to tell, for example, whether it is a start-tag or end-tag, or text), and inspect its attributes (local name, [[XML namespace|namespace]], values of XML attributes, value of text, etc.), and can also move the iterator to the next item. The code can thus extract information from the document as it traverses it. The recursive-descent approach tends to lend itself to keeping data as typed local variables in the code doing the parsing, while SAX, for instance, typically requires a parser to manually maintain intermediate data within a stack of elements that are parent elements of the element being parsed. Pull-parsing code can be more straightforward to understand and maintain than SAX parsing code.
===Document Object Model (DOM)===
[[Document Object Model|DOM]] (Document Object Model) is an [[User interface|interface]]-oriented [[Application Programming Interface]] that allows for navigation of the entire document as if it were a tree of "[[Node (computer science)|Node]]" [[Object (computer science)|object]]s representing the document's contents. A DOM document can be created by a parser, or can be generated manually by users (with limitations). Data types in DOM Nodes are abstract; implementations provide their own [[programming]] language-specific [[binding]]s. DOM implementations tend to be [[memory]] intensive, as they generally require the entire document to be loaded into memory and constructed as a tree of objects before access is allowed.
 
===Data bindingDocument Object Model ===
{{Main|Document Object Model}}
Another form of XML Processing API is [[XML data binding|data binding]], where XML data is made available as a hierarchy of custom, strongly typed classes, in contrast to the generic objects created by a [[DOM|Document Object Model]] parser. This approach simplifies code development, and in many cases allows problems to be identified at compile time rather than run-time. Example data binding systems include the [[Java (programming language)|Java]] [[Architecture]] for XML Binding ([[JAXB]]),<ref>[http://java.sun.com/xml/jaxb/ ]{{Dead link|date=July 2009}}</ref> XML Serialization in .NET,<ref>{{cite web|url=http://msdn.microsoft.com/en-us/library/ms950721.aspx |title=XML Serialization in the .NET Framework |publisher=Msdn.microsoft.com |date= |accessdate=2009-07-31}}</ref> Liquid XML Data Binder for [[C++]], [[Java (programming language)|Java]], [[Visual Basic|VB]] & [[.NET Framework|.Net]] <ref>{{cite web|url=http://www.liquid-technologies.com |title=XML Editor, XML Data Binding Code Generator, XML Schema, Create XML |publisher=Liquid Technologies |date= |accessdate=2009-07-31}}</ref> and [[CodeSynthesis XSD]] for [[C++]].<ref>{{cite web|url=http://www.artima.com/cppsource/xml_data_binding.html |title=An Introduction to XML Data Binding in C |publisher=Artima.com |date=2007-05-04 |accessdate=2009-07-31}}</ref><ref>{{cite web|url=http://www.codesynthesis.com/products/xsd/ |title=CodeSynthesis XSD&nbsp;— XML Data Binding for C |publisher=Codesynthesis.com |date= |accessdate=2009-07-31}}</ref>
 
The [[Document Object Model]] (DOM) is an interface that allows for navigation of the entire document as if it were a tree of [[Node (computer science)|node]] [[Object (computer science)|objects]] representing the document's contents. A DOM document can be created by a parser, or can be generated manually by users (with limitations). Data types in DOM nodes are abstract; implementations provide their own programming language-specific [[language binding|bindings]]. DOM implementations tend to be [[memory]] intensive, as they generally require the entire document to be loaded into memory and constructed as a tree of objects before access is allowed.
===XML as data type===
XML is beginning to appear as a first-class data type in other languages. The [[E4X|ECMAScript for XML]] (E4X) extension to the [[ECMAScript]]/JavaScript language explicitly defines two specific objects (XML and XMLList) for JavaScript, which support XML document nodes and XML document lists as distinct objects and use a dot-notation specifying parent-child relationships. E4X is supported by the [[Mozilla]] 2.5+ browsers and Adobe [[Actionscript]], but has not been adopted more universally. A somewhat similar notation is used in Microsoft's [[LINQ]] implementation for Microsoft .NET 3.5 and above, while XJ is an IBM implementation of an XML data object implementation for Java, developed in 2005. The open-source xmlsh application, which provides a Linux-like shell with special features for XML manipulation, similarly treats XML as a data type, using the <[ ]> notation.<ref>http://www.xmlsh.org/CoreSyntax</ref>
 
=== Data binding ===
==History==
[[XML data binding]] is a technique for simplifying development of applications that need to work with XML documents. It involves mapping the XML document to a hierarchy of strongly typed objects, rather than using the generic objects created by a DOM parser. The resulting code is often easier to read and maintain, and it can help to identify problems at compile time rather than run-time. XML data binding is particularly well-suited for applications where the document structure is known and fixed at the time the application is written. By creating a strongly typed representation of the XML data, developers can take advantage of modern integrated development environments (IDEs) that provide features like auto-complete, code refactoring, and code highlighting. This can make it easier to write correct and efficient code, and reduce the risk of errors and bugs. Example data-binding systems include the [[Java Architecture for XML Binding]] (JAXB), XML Serialization in [[.NET Framework]],<ref>{{cite web|first=Dare|last=Obasanjo|url=http://msdn.microsoft.com/en-us/library/ms950721.aspx|title=XML Serialization in the .NET Framework|website=Microsoft Developer Network|date=30 June 2006 |access-date=31 July 2009}}</ref> and XML serialization in [[gSOAP]].
The versatility of [[SGML]] for dynamic information display was understood by early digital media publishers in the late 1980s prior to the rise of the Internet.<ref name=OED> {{cite web | title=A conversation with Tim Bray: Searching for ways to tame the world’s vast stores of information | url=http://www.acmqueue.com/modules.php?name=Content&pa=showpage&pid=282 | first=Tim |last=Bray | month=February | year=2005 | publisher=Association for Computing Machinery's "Queue site" | dateformat=mdy | accessdate=April 16 2006 }}</ref><ref name=multimedia> {{cite book | title=Interactive multimedia | chapter=Publishers, multimedia, and interactivity | publisher= Cobb Group | isbn=1-55615-124-1 | year=1988 | author=edited by Sueann Ambron and Kristina Hooper ; foreword by John Sculley.}}</ref> By the mid-1990s some practitioners of SGML had gained experience with the then-new [[World Wide Web]], and believed that SGML offered solutions to some of the problems the Web was likely to face as it grew. [[Dan Connolly]] added SGML to the list of W3C's activities when he joined the staff in 1995; work began in mid-1996 when Sun Microsystems engineer [[Jon Bosak]] developed a charter and recruited collaborators. Bosak was well connected in the small community of people who had experience both in SGML and the Web.
 
=== XML as data type ===
XML was compiled by a [[working group]] of eleven members,<ref>The working group was originally called the "Editorial Review Board." The original members and seven who were added before the first edition was complete, are listed at the end of the first edition of the XML Recommendation, at http://www.w3.org/TR/1998/REC-xml-19980210.</ref> supported by an (approximately) 150-member Interest Group. Technical debate took place on the Interest Group mailing list and issues were resolved by consensus or, when that failed, majority vote of the Working Group. A record of design decisions and their rationales was compiled by [[Michael Sperberg-McQueen]] on December 4, 1997.<ref>{{cite web|url=http://www.w3.org/XML/9712-reports.html |title=Reports From the W3C SGML ERB to the SGML WG And from the W3C XML ERB to the XML SIG |publisher=W3.org |date= |accessdate=2009-07-31}}</ref> [[James Clark (XML expert)|James Clark]] served as Technical Lead of the Working Group, notably contributing the empty-element "<empty/>" syntax and the name "XML". Other names that had been put forward for consideration included "MAGMA" (Minimal Architecture for Generalized Markup Applications), "SLIM" (Structured Language for Internet Markup) and "MGML" (Minimal Generalized Markup Language). The co-editors of the specification were originally [[Tim Bray]] and [[Michael Sperberg-McQueen]]. Halfway through the project Bray accepted a consulting engagement with [[Netscape Communications Corporation|Netscape]], provoking vociferous protests from Microsoft. Bray was temporarily asked to resign the editorship. This led to intense dispute in the Working Group, eventually solved by the appointment of Microsoft's [[Jean Paoli]] as a third co-editor.
XML has appeared as a [[first-class data type]] in other languages. The [[ECMAScript for XML]] (E4X) extension to the [[ECMAScript]]/JavaScript language explicitly defines two specific objects (XML and XMLList) for JavaScript, which support XML document nodes and XML node lists as distinct objects and use a dot-notation specifying parent-child relationships.<ref>{{cite web|title=Processing XML with E4X|url=https://developer.mozilla.org/en/core_javascript_1.5_guide/processing_xml_with_e4x|work=Mozilla Developer Center|publisher=Mozilla Foundation|access-date=2010-07-27|archive-date=2011-05-01|archive-url=https://web.archive.org/web/20110501151224/https://developer.mozilla.org/en/core_javascript_1.5_guide/processing_xml_with_e4x|url-status=dead}}</ref> E4X is supported by the [[Mozilla]] 2.5+ browsers (though now deprecated) and Adobe [[Actionscript]] but has not been widely adopted. Similar notations are used in Microsoft's [[LINQ]] implementation for Microsoft .NET 3.5 and above, and in [[Scala (programming language)|Scala]] (which uses the Java VM). The open-source xmlsh application, which provides a Linux-like shell with special features for XML manipulation, similarly treats XML as a data type, using the <[ ]> notation.<ref>{{cite web|url=http://www.xmlsh.org/CoreSyntax|title=XML Shell: Core Syntax|website=Xmlsh.org|date=2010-05-13|access-date=22 August 2010}}</ref> The [[Resource Description Framework]] defines a data type <code>rdf:XMLLiteral</code> to hold wrapped, [[canonical XML]].<ref>{{cite web|editor1-first=G.|editor1-last=Klyne|editor2-first=J. J.|editor2-last=Carroll|url=https://www.w3.org/TR/rdf10-concepts#dfn-rdf-XMLLiteral|date=10 February 2004|title=Resource Description Framework (RDF): Concepts and Abstract Syntax|format=W3C Recommendation|publisher=W3C|at=section 5.1}}</ref> Facebook has produced extensions to the [[PHP]] and [[JavaScript]] languages that add XML to the core syntax in a similar fashion to E4X, namely [[XHP]] and [[React (JavaScript library)#JSX|JSX]] respectively.
 
== History ==
The XML Working Group never met face-to-face; the design was accomplished using a combination of email and weekly teleconferences. The major design decisions were reached in twenty weeks of intense work between July and November 1996, when the first Working Draft of an XML specification was published.<ref>{{cite web|url=http://www.w3.org/TR/WD-xml-961114.html |title=Extensible Markup Language (XML) |publisher=W3.org |date=1996-11-14 |accessdate=2009-07-31}}</ref> Further design work continued through 1997, and XML 1.0 became a [[W3C]] Recommendation on February 10, 1998.
XML is an application [[Profile (engineering)|profile]] of [[SGML]] (ISO 8879).<ref name="ISO-2006">{{cite web|url=https://meta.geo.census.gov/data/existing/decennial/GEO/GSCQB/ReleasedPerlScriptsandSchemas/XSLTSSchemsaModules/schematron/schematron/ISO-Schematron-Specification.pdf|title=ISO/IEC 19757-3|page=vi|publisher=[[ISO]]/[[IEC]]|date=1 June 2006|access-date=January 1, 2025}}</ref>
 
The versatility of SGML for dynamic information display was understood by early digital media publishers in the late 1980s prior to the rise of the Internet.<ref name="bray 2005"/><ref name="Cobb Group-1988">{{cite book|title=Interactive multimedia|chapter=Publishers, multimedia, and interactivity|publisher=Cobb Group|isbn=1-55615-124-1|year=1988|editor1-first=Sueann|editor1-last=Ambron|editor2-first=Kristina|editor2-last=Hooper|name-list-style=amp|url-access=registration|url=https://archive.org/details/interactivemulti0000unse}}</ref> By the mid-1990s some practitioners of SGML had gained experience with the then-new [[World Wide Web]], and believed that SGML offered solutions to some of the problems the Web was likely to face as it grew. [[Dan Connolly (computer scientist)|Dan Connolly]] added SGML to the list of W3C's activities when he joined the staff in 1995; work began in mid-1996 when [[Sun Microsystems]] engineer [[Jon Bosak]] developed a charter and recruited collaborators. Bosak was well-connected in the small community of people who had experience both in SGML and the Web.<ref>{{cite web|title=XML: Ten Year Aniversary |url=http://drmacros-xml-rants.blogspot.com/2006/11/xml-ten-year-aniversary.html|date=November 26, 2006 |first=W. Eliot|last=Kimber|website= Dr. Macro's XML Rants |access-date=16 November 2017}}</ref>
XML 1.0 achieved the Working Group's goals of Internet usability, general-purpose usability, SGML compatibility, facilitation of easy development of processing software, minimization of optional features, legibility, formality, conciseness, and ease of authoring.
Like its antecedent SGML, XML allows for some redundant syntactic constructs and includes repetition of element identifiers. In these respects, terseness was not considered essential in its structure.
 
XML was compiled by a [[working group]] of eleven members,<ref>The working group was originally called the "Editorial Review Board". The original members and seven who were added before the first edition was complete, are listed at the end of the first edition of the XML Recommendation {{harv|Bray|Paoli|Sperberg-McQueen|1998}}.</ref> supported by a (roughly) 150-member Interest Group. Technical debate took place on the Interest Group mailing list and issues were resolved by consensus or, when that failed, majority vote of the Working Group. A record of design decisions and their rationales was compiled by [[Michael Sperberg-McQueen]] on December 4, 1997.<ref>{{cite web|editor-first=C. M.|editor-last=Sperberg-McQueen|url=http://www.w3.org/XML/9712-reports.html |date=4 December 1997 |title=Reports From the W3C SGML ERB to the SGML WG And from the W3C XML ERB to the XML SIG|publisher=W3C|access-date=31 July 2009}}</ref> [[James Clark (XML expert)|James Clark]] served as Technical Lead of the Working Group, notably contributing the empty-element <code>&lt;empty&nbsp;/></code> syntax and the name "XML". Other names that had been put forward for consideration included "MAGMA" (Minimal Architecture for Generalized Markup Applications), "SLIM" (Structured Language for Internet Markup) and "MGML" (Minimal Generalized Markup Language).<ref>{{cite journal|last1=Warwick|first1=C.|last2=Pritchard|first2=E.|year=2000|title='Hyped' text markup language. XML and the future of web markup|journal=ASLIB Proceedings|volume=52|number=5|pages=174–184|doi=10.1108/EUM0000000007012}}</ref> The co-editors of the specification were originally [[Tim Bray]] and [[Michael Sperberg-McQueen]]. Halfway through the project, Bray accepted a consulting engagement with [[Netscape]], provoking vociferous protests from Microsoft. Bray was temporarily asked to resign the editorship. This led to intense dispute in the Working Group, eventually solved by the appointment of Microsoft's [[Jean Paoli]] as a third co-editor.<ref>{{cite news|first=P.|last=Manchester|date=15 February 2008|title=Bray recalls team XML|work=The Register|url=https://www.theregister.com/2008/02/15/xml_tenth_anniversary}}</ref>
===Sources===
XML is a profile of an ISO standard [[SGML]], and most of XML comes from SGML unchanged. From SGML comes the separation of logical and physical structures (elements and entities), the availability of grammar-based validation (DTDs), the separation of data and metadata (elements and attributes), mixed content, the separation of processing from representation (processing instructions), and the default angle-bracket syntax. Removed were the SGML Declaration (XML has a fixed delimiter set and adopts [[Unicode]] as the document [[Character encoding|character set]]).
 
The XML Working Group communicated primarily through email and weekly teleconferences. The major design decisions were reached in a short burst of intense work between August and November 1996,<ref>{{cite web|url=http://java.sun.com/xml/birth_of_xml.html|title=The Birth of XML|date=12 April 2003|first1=Jon |last1=Bosak |website=Sun Developer Network|access-date=16 November 2017 |url-status=dead |archive-url= https://web.archive.org/web/20120804024400/http://java.sun.com/xml/birth_of_xml.html |archive-date= Aug 4, 2012 }}</ref> when the first Working Draft of an XML specification was published.<ref>{{cite web|editor1-first=T.|editor1-last=Bray|editor2-first=C. M.|editor2-last=Sperberg-McQueen|format=W3C Working Draft|url=http://www.w3.org/TR/WD-xml-961114.html|title=Extensible Markup Language (XML)|publisher=W3C|date=14 November 1996|access-date=31 July 2009}}</ref> Further design work continued through 1997, and XML 1.0 became a [[W3C]] Recommendation on February 10, 1998.
Other sources of technology for XML were the [[Text Encoding Initiative]] (TEI), which defined a profile of SGML for use as a 'transfer syntax'; [[HTML]], in which elements were synchronous with their resource, the separation of document character set from resource encoding, the xml:lang attribute, and the [[HTTP]] notion that metadata accompanied the resource rather than being needed at the declaration of a link. Largely in response to discussion with the XML committee, SGML added the Extended Reference Concrete Syntax (ERCS), from which XML 1.0's naming rules were then taken, and introduced hexadecimal numeric character references and the concept of references to make available all Unicode characters.
 
=== Sources ===
Ideas that developed during discussion which were novel in XML included the algorithm for encoding detection and the encoding header, the processing instruction target, the xml:space attribute, and the new close delimiter for empty-element tags. The notion of well-formedness as opposed to validity (which enables parsing without a schema) was first formalized in XML, although it had been implemented successfully in the Electronic Book Technology "Dynatext" software<ref>{{cite web|author=Jon Bosak, Sun Microsystems |url=http://2006.xmlconference.org/proceedings/162/presentation.html |title=Closing Keynote, XML 2006 |publisher=2006.xmlconference.org |date=2006-12-07 |accessdate=2009-07-31}}</ref>, the software from the University of Waterloo New Oxford English Dictionary Project, the RISP LISP SGML text processor at Uniscope, Tokyo, the US Army Missile Command IADS hypertext system, Mentor Graphics Context, Interleaf and Xerox Publishing System.
XML is a profile of an ISO standard, SGML, and most of XML comes from SGML unchanged. From SGML comes the separation of logical and physical structures (elements and entities), the availability of grammar-based validation (DTDs), the separation of data and metadata (elements and attributes), mixed content, the separation of processing from representation ([[processing instruction]]s), and the default angle-bracket syntax. The SGML declaration was removed; thus, XML has a fixed delimiter set and adopts [[Unicode]] as the document [[Character encoding|character set]].
 
Other sources of technology for XML were the [[Text Encoding Initiative|TEI]] (Text Encoding Initiative), which defined a profile of SGML for use as a "transfer syntax" and [[HTML]]. The ERCS (Extended Reference Concrete Syntax) project of the SPREAD (Standardization Project Regarding East Asian Documents) project of the ISO-related China/Japan/Korea Document Processing expert group was the basis of XML 1.0's naming rules; SPREAD also introduced hexadecimal numeric character references and the concept of references to make available all Unicode characters. To support ERCS, XML and HTML better, the SGML standard IS 8879 was revised in 1996 and 1998 with WebSGML Adaptations.
===Versions===
There are two current versions of XML. The first, ''XML 1.0'', was initially defined in 1998. It has undergone minor revisions since then, without being given a new version number, and is currently in its fifth edition, as published on November 26, 2008. It is widely implemented and still recommended for general use. The second, ''XML 1.1'', was initially published on February 4, 2004, the same day as XML 1.0 Third Edition<ref>[http://www.w3.org/TR/2004/REC-xml-20040204 Extensible Markup Language (XML) 1.0 (Third Edition)]</ref>, and is currently in its second edition, as published on August 16, 2006. It contains features&nbsp;— some contentious&nbsp;— that are intended to make XML easier to use in certain cases<ref>{{cite web |url=http://www.w3.org/TR/xml11/#sec-xml11 |title=Extensible Markup Language (XML) 1.1 (Second Edition) - Rationale and list of changes for XML 1.1 |accessdate=2006-12-21 |publisher=W3C}}</ref> - mainly enabling the use of line-ending characters used on [[EBCDIC]] platforms, and the use of scripts and characters absent from Unicode 2.0. XML 1.1 is not very widely implemented and is recommended for use only by those who need its unique features. <ref>{{cite book
| last = Harold
| first = Elliotte Rusty
| title = Effective XML
| publisher = Addison-Wesley
| year = 2004
| pages = 10–19
| url = http://www.cafeconleche.org/books/effectivexml/
| isbn = 0321150406}}</ref>
 
Ideas that developed during discussion that are novel in XML included the algorithm for encoding detection and the encoding header, the processing instruction target, the xml:space attribute, and the new close delimiter for empty-element tags. The notion of well-formedness as opposed to validity (which enables parsing without a schema) was first formalized in XML, although it had been implemented successfully in the Electronic Book Technology "Dynatext" software;<ref>{{cite conference|first=Jon|last=Bosak|authorlink=Jon Bosak|url=http://2006.xmlconference.org/proceedings/162/presentation.html|archive-url=https://web.archive.org/web/20070711133314/http://2006.xmlconference.org/proceedings/162/presentation.html|archive-date=2007-07-11|title=Closing Keynote |conference=XML 2006 |date=12 July 2006|access-date=31 July 2009}}</ref> the software from the University of Waterloo New Oxford English Dictionary Project; the RISP LISP SGML text processor at Uniscope, Tokyo; the US Army Missile Command IADS hypertext system; Mentor Graphics Context; Interleaf and Xerox Publishing System.
Prior to its fifth edition release<ref>[http://www.w3.org/TR/2008/REC-xml-20081126/ Extensible Markup Language (XML) 1.0 (Fifth Edition)]</ref>, XML 1.0 differed from XML 1.1 in the requirements of characters used for element and attribute names: the first four editions of XML 1.0 required these names to contain only characters from a fixed list, all of which were defined in Unicode 2.0, a version of the Unicode Standard which excluded many world scripts. Consequently, names could not contain characters in the [[Mongolian language|Mongolian]], [[Cambodian language|Cambodian]], [[Amharic]], or [[Burmese language|Burmese]] scripts among many others which have been added to Unicode since Unicode 2.0. The approach taken in the fifth edition of XML 1.0 and in all editions of XML 1.1 is that only certain characters are forbidden in names, and everything else is allowed, in order to accommodate the use of suitable name characters in future versions of Unicode.
 
== Versions ==
Almost any Unicode code point can be used in the character data and attribute values of an XML 1.0 or 1.1 document, even if the character corresponding to the code point is not defined in the current version of Unicode. In character data and attribute values, XML 1.1 allows the use of more [[control character]]s than XML 1.0, but, for "robustness", most of the control characters introduced in XML 1.1 must be expressed as numeric character references. Among the supported control characters in XML 1.1 are two line break codes that must be treated as whitespace. Whitespace characters are the only control codes that can be written directly.
=== 1.0 and 1.1 ===
The first (XML 1.0) was initially defined in 1998. It has undergone minor revisions since then, without being given a new version number, and is currently in its fifth edition, as published on November 26, 2008. It is widely implemented and still recommended for general use.
 
The second (XML 1.1) was initially published on February 4, 2004, the same day as XML 1.0 Third Edition,<ref>{{cite web|editor1-first=T.|editor1-last=Bray|editor2-first=J.|editor2-last=Paoli|editor3-first=C. M.|editor3-last=Sperberg-McQueen|editor4-first=E.|editor4-last=Maler|editor5-first=F|editor5-last=Yergeau|publisher=W3C|title=Extensible Markup Language (XML) 1.0|edition=3rd|format=W3C Recommendation|url=https://www.w3.org/TR/2004/REC-xml-20040204|date=4 February 2004}}</ref> and is currently in its second edition, as published on August 16, 2006. It contains features (some contentious) that are intended to make XML easier to use in certain cases.{{sfnp|Bray|Paoli|Sperberg-McQueen|Maler|2006|loc=section 1.3}} The main changes are to enable the use of line-ending characters used on [[EBCDIC]] platforms, and the use of scripts and characters absent from Unicode 3.2. XML 1.1 is not very widely implemented and is recommended for use only by those who need its particular features.<ref>{{cite book|last=Harold|first=Elliotte Rusty|title=Effective XML|publisher=Addison-Wesley|year=2004|pages=[https://archive.org/details/effectivexml50sp00haro/page/10 10–19]|url=https://archive.org/details/effectivexml50sp00haro/page/10|isbn=0-321-15040-6|url-access=registration}}</ref>
There has been discussion of an XML 2.0, although no organization has announced plans for work on such a project. [[XML-SW]] (SW for [[skunk works]]), written by one of the original developers of XML, contains some proposals for what an XML 2.0 might look like: elimination of DTDs from syntax, integration of [[namespace (computer science)#XML|namespace]]s, [[XML Base]] and [[XML Information Set]] (''infoset'') into the base standard.
 
Prior to its fifth edition release, XML 1.0 differed from XML 1.1 in having stricter requirements for characters available for use in element and attribute names and unique identifiers: in the first four editions of XML 1.0 the characters were exclusively enumerated using a specific version of the [[Unicode]] standard (Unicode 2.0 to Unicode 3.2.) The fifth edition substitutes the mechanism of XML 1.1, which is more future-proof but reduces [[Redundancy (information theory)|redundancy]]. The approach taken in the fifth edition of XML 1.0 and in all editions of XML 1.1 is that only certain characters are forbidden in names, and everything else is allowed to accommodate suitable name characters in future Unicode versions. In the fifth edition, XML names may contain characters in the [[Balinese script|Balinese]], [[Cham script|Cham]], or [[Phoenician alphabet|Phoenician]] scripts among many others added to Unicode since Unicode 3.2.{{sfnp|Bray|Paoli|Sperberg-McQueen|Maler|2006|loc=section 1.3}}
The World Wide Web Consortium also has an XML Binary Characterization Working Group doing preliminary research into use cases and properties for a binary encoding of the XML infoset. The working group is not chartered to produce any official standards. Since XML is by definition text-based, ITU-T and ISO are using the name ''[[Fast Infoset]]'' for their own binary infoset to avoid confusion (see ITU-T Rec. X.891 | ISO/IEC 24824-1).
 
Almost any Unicode code point can be used in the character data and attribute values of an XML 1.0/1.1 document, even if the character corresponding to the code point is not defined in the current version of Unicode. In character data and attribute values, XML 1.1 allows the use of more [[control character]]s than XML 1.0, but, for "robustness", most of the control characters introduced in XML 1.1 must be expressed as numeric character references (and #x7F through #x9F, which had been allowed in XML 1.0, are in XML 1.1 even required to be expressed as numeric character references{{sfnp|Bray|Paoli|Sperberg-McQueen|Maler|2006|loc=section 1.3}}). Among the supported control characters in XML 1.1 are two line break codes that must be treated as whitespace characters, which are the only control codes that can be written directly.
==Standards==
In addition to the [[ISO]] standards mentioned above, other related document include:
 
=== 2.0 ===
{{refbegin|2}}
There has been discussion of an XML 2.0, although no organization has announced plans for work on such a project. XML-SW (SW for [[Skunkworks project|skunkworks]]), which one of the original developers of XML has written,<ref>{{Cite web |first=Tim |last=Bray |url=http://www.textuality.com/xml/xmlSW.html |website=Textuality |title=Extensible Markup Language, SW (XML-SW) |date=10 February 2002}}</ref> contains some proposals for what an XML 2.0 might look like, including elimination of DTDs from syntax, as well as integration of [[XML namespace]]s, [[XML Base]] and [[XML Information Set]] into the base standard.
* ISO/IEC 8825-4:2002 ''Information technology—ASN.1 encoding rules: XML Encoding Rules (XER)''
* ISO/IEC 8825-5:2004 ''Information technology—ASN.1 encoding rules: Mapping W3C XML schema definitions into ASN.1''
* ISO/IEC 9075-14:2006 ''Information technology—Database languages—SQL—Part 14: XML-Related Specifications (SQL/XML)''
* ISO 10303-28:2007 ''Industrial automation systems and integration—Product data representation and exchange—Part 28: Implementation methods: XML representations of EXPRESS schemas and data, using XML schemas''
* ISO/IEC 13250-3:2007 ''Information technology—Topic Maps—Part 3: XML syntax''
* ISO/IEC 13522-5:1997 ''Information technology—Coding of multimedia and hypermedia information—Part 5: Support for base-level interactive applications''
* ISO/IEC 13522-8:2001 ''Information technology—Coding of multimedia and hypermedia information—Part 8: XML notation for ISO/IEC 13522-5''
* ISO/IEC 18056:2007 ''Information technology—Telecommunications and information exchange between systems—XML Protocol for Computer Supported Telecommunications Applications (CSTA) Phase III''
* ISO/IEC 19503:2005 ''Information technology—XML Metadata Interchange (XMI)''
* ISO/IEC 19776-1:2005 ''Information technology—Computer graphics, image processing and environmental data representation—Extensible 3D (X3D) encodings—Part 1: Extensible Markup Language (XML) encoding
* ISO/IEC 22537:2006 ''Information technology—ECMAScript for XML (E4X) specification''
* ISO 22643:2003 ''Space data and information transfer systems—Data entity dictionary specification language (DEDSL) -- XML/DTD Syntax''
* ISO/IEC 23001-1:2006 ''Information technology—MPEG systems technologies—Part 1: Binary MPEG format for XML''
* ISO 24531:2007 ''Intelligent transport systems—System architecture, taxonomy and terminology—Using XML in ITS standards, data registries and data dictionaries''
{{refend}}
 
==See= alsoMicroXML ===
In 2012, [[James Clark (programmer)|James Clark]] (technical lead of the XML Working Group) and [[John W. Cowan|John Cowan]] (editor of the XML 1.1 specification) formed the MicroXML Community Group within the W3C and published MicroXML, a specification for a significantly reduced subset of XML.<ref>{{Cite web |date=2012-10-01 |title=MicroXML Community Group |url=https://www.w3.org/community/microxml/ |access-date=2023-08-05 |website=W3C |language=en-US}}</ref> MicroXML provides a much simpler core syntax by stripping away many features of full XML, such as document type declarations and CDATA sections,<ref name="quovadis"/> while ensuring XML namespace validity by disallowing names conflicting with namespace prefixing.
{{Wikibooks}}
 
=== Binary XML ===
{{main article|Binary XML}}
Due to the verbosity of textual XML, various binary formats have been proposed as compact representations for XML: [[Fast Infoset]], based on [[ASN.1]], was published as an international standard by the [[ITU-T]] in 2005, and later by [[ISO]]. [[Efficient XML Interchange]] (EXI), a binary XML format originally developed by AgileDelta, was adopted as a W3C recommendation in 2011, with a second edition published in 2014.
 
== Criticism ==
XML and its extensions have regularly been criticized for verbosity, complexity and redundancy.<ref>{{cite web|url=http://www.codinghorror.com/blog/2008/05/xml-the-angle-bracket-tax.html|title=XML: The Angle Bracket Tax|website=Codinghorror.com|date=11 May 2008|access-date=16 November 2017|archive-date=26 February 2014|archive-url=https://web.archive.org/web/20140226163227/http://www.codinghorror.com/blog/2008/05/xml-the-angle-bracket-tax.html|url-status=dead}}</ref>
 
Mapping the basic tree model of XML to [[type system]]s of programming languages or databases can be difficult, especially when XML is used for exchanging highly structured data between applications, which was not its primary design goal. However, [[XML data binding]] systems allow applications to access XML data directly from objects representing a [[data structure]] of the data in the programming language used, which ensures [[type safety]], rather than using the [[Document Object Model|DOM]] or [[Simple API for XML|SAX]] to retrieve data from a direct representation of the XML itself. This is accomplished by automatically creating a mapping between elements of the XML schema [[XSD]] of the document and members of a class to be represented in memory.
 
Other criticisms attempt to refute the claim that XML is a [[self-describing]] language<ref>{{cite web|url=http://workflow.healthbase.info/monographs/XML_myths_Browne.pdf|title=The Myth of Self-Describing XML|date=September 2003|website=Workflow.HealthBase.info|access-date=16 November 2017}}</ref> (though the XML specification itself makes no such claim).
 
[[JSON]], [[YAML]], and [[S-expression|S-Expressions]] are frequently proposed as simpler alternatives (see [[Comparison of data-serialization formats]])<ref>{{cite web|url=https://stackoverflow.com/questions/51492/what-usable-alternatives-to-xml-syntax-do-you-know|title=What usable alternatives to XML syntax do you know?|website=StackOverflow.com|access-date=16 November 2017}}</ref> that focus on representing highly structured data rather than documents, which may contain both highly structured and relatively unstructured content. However, W3C-standardized XML schema specifications offer a broader range of structured [[XSD]] data types compared to simpler serialization formats and offer modularity and reuse through [[XML namespace]]s.
 
== See also ==
* [[AIDX]]
* [[Binary XML]]
* [[Comparison of data-serialization formats]]
* [[XML Protocol]]
* [[EBML]]
* [[Extensible programming]]
* [[List of XML markup languages]]
* [[:Category:List of types of XML-based standardsschemas]]
* [[ComparisonSimple of layout engines (XML)]]
* [[WBXML]]
* [[Comparison of data serialization formats]]
* [[ListXML of computer standardsProtocol]]
 
== Notes ==
{{Notelist-lr}}
 
== References ==
=== Citations ===
{{Reflist}}
 
=== Bibliography ===
==References==
{{Refbegin}}
{{reflist|colwidth=30em}}
* {{cite web|editor1-first=T.|editor1-last=Bray|editor2-first=J.|editor2-last=Paoli|editor3-first=C. M.|editor3-last=Sperberg-McQueen|editor4-first=E.|editor4-last=Maler|editor5-first=F|editor5-last=Yergeau|publisher=W3C|title=Extensible Markup Language (XML) 1.0|edition=5th|format=W3C Recommendation|url=https://www.w3.org/TR/REC-xml/|date=26 November 2008}}
* {{cite web|editor1-first=T.|editor1-last=Bray|editor2-first=J.|editor2-last=Paoli|editor3-first=C. M.|editor3-last=Sperberg-McQueen|editor4-first=E.|editor4-last=Maler|editor5-first=F|editor5-last=Yergeau|editor6-last=Cowan|editor6-first=J.|publisher=W3C|title=Extensible Markup Language (XML) 1.1|edition=2nd|format=W3C Recommendation|url=https://www.w3.org/TR/xml11|date=16 August 2006}}
* {{cite book |last1=Dykes |first1=Lucinda |title=XML for Dummies |date=2005 |publisher=Wiley |___location=Hoboken, N.J. |isbn=978-0-7645-8845-7 |edition=4th}}
* {{cite book|last1=Harold|first1=E. R.|last2=Means|first2=W. S.|year=2002|title=XML in a Nutshell|url=https://archive.org/details/xmlinnutshell00haro|url-access=registration|edition=2nd|publisher=O'Reilly|___location=Sebastopol, CA|isbn=978-0-5960-0292-3}}
{{Refend}}
 
== Further reading ==
{{Refbegin}}
*Annex A of ISO 8879:1986 (SGML)
* Annex A of ISO 8879:1986 (SGML)
*{{cite journal |id= {{SSRN|900616}} |author=Lawrence A. Cunningham|title=Language, Deals and Standards: The Future of XML Contracts|journal=Washington University Law Review|year=2005 }}
* {{cite journal|ssrn=900616|first=L. A.|last=Cunningham|title=Language, Deals and Standards: The Future of XML Contracts|journal=Washington University Law Review|volume=84|issue=2|pages=313–373|year=2005}}
*{{cite journal |title=XML and the Second-Generation Web|journal=Scientific American|year=1999}} Online at [http://www.scientificamerican.com/article.cfm?id=xml-and-the-second-genera XML and the Second-Generation Web]
* {{cite journal|last1=Bosak|first1=Jon |first2=Tim |last2=Bray |title=XML and the Second-Generation Web|journal=Scientific American|date=May 1999 |volume=280 |issue=5 |page=89 |doi=10.1038/scientificamerican0599-89 |doi-broken-date=12 July 2025 |bibcode=1999SciAm.280e..89B |url=http://www.scientificamerican.com/article.cfm?id=xml-and-the-second-genera |archive-url=https://web.archive.org/web/20091001200447/http://www.scientificamerican.com/article.cfm?id=xml-and-the-second-genera | archive-date=1 October 2009 |url-access=subscription }}
* {{cite web|url=https://www.developer.com/languages/xml/making-mistakes-with-xml/|title=Making Mistakes with XML|last=Kelly|first=Sean |date=February 6, 2006|work=Developer.com|url-status=dead|archive-url=https://web.archive.org/web/20210413160414/https://www.developer.com/languages/xml/making-mistakes-with-xml/|archive-date=13 April 2021}}
* {{cite web|url=http://www.oreillynet.com/xml/blog/2003/02/five_years_later_xml.html|title=Five Years Later, XML..|last=St. Laurent|first=Simon|date=February 12, 2003|work=O'Reilly XML Blog|publisher=[[O'Reilly Media]]|access-date=26 October 2010}}
* {{cite web|url=http://www.w3.org/2008/02/xml10-pressrelease|title=W3C XML is Ten!|date=12 February 2008|publisher=[[World Wide Web Consortium]]|access-date=26 October 2010}}
* {{cite web|url=http://wam.inrialpes.fr/courses/PG-MoSIG12/xml.pdf |title=Introduction to XML |date=October 2012 |work=Course Slides |publisher=Project WAM|authorlink=Pierre Geneves|last=Geneves|first=Pierre|url-status=live |archive-url=https://web.archive.org/web/20151016053704/http://wam.inrialpes.fr/courses/PG-MoSIG12/xml.pdf |archive-date=2015-10-16 }}
{{Refend}}
 
== External links ==
{{Commons category|XML}}
{{Wikibooks|Subject:XML}}
{{Prone to spam|date=November 2013}}
<!--
{{No more links}}
PLEASE NOTE: If you wish to add additional external links, please discuss it on the talk page first, since this article is prone to linkfarming.
Please be cautious adding more external links. Wikipedia is not a collection of links and should not be used for advertising. Excessive or inappropriate links will be removed.
-->
 
*[http://www.w3.org/XML/ W3C XML homepage]
See [[Wikipedia:External links]] and [[Wikipedia:Spam]] for details. If there are already suitable links, propose additions or replacements on an article's talk page, or submit your link to the relevant category at the Curlie website (former Open Directory Project (dmoz.org)) and link there using {{Curlie}}.
*[http://www.sgmlsource.com/history/AnnexA.htm Introduction to Generalized Markup] by [[Charles Goldfarb]]
*[http://www.developer.com/xml/article.php/10929_3583081_1 Making Mistakes with XML] by [[Sean Kelly]]
*[http://www.mind-to-mind.com/library/papers/multilingual/multilingual-www.html The Multilingual WWW] by Gavin Nicol
*[http://xml.ascc.net/en/utf-8/ercsretro.html Retrospective on Extended Reference Concrete Syntax] by [[Rick Jelliffe]]
*[http://www.xml.com/pub/a/w3j/s3.bosak.html XML, Java and the Future of the Web] by [[Jon Bosak]]
*[http://www.w3schools.com/xml/default.asp XML tutorials in w3schools]
*[http://xml.gov/ XML.gov]
*[http://www-128.ibm.com/developerworks/library/x-think38.html Thinking XML: The XML decade] by Uche Ogbuji
*[http://drmacros-xml-rants.blogspot.com/2006/11/xml-ten-year-aniversary.html XML: Ten year anniversary] by Elliot Kimber
*[http://2006.xmlconference.org/proceedings/162/presentation.html Closing Keynote, XML 2006] by [[Jon Bosak]]
*[http://www.oreillynet.com/xml/blog/2003/02/five_years_later_xml.html Five years later, XML...] by Simon St. Laurent
*[http://open.itworld.com/4934/xml-fallacies-nlstipsm-080122/page_1.html 23 XML fallacies to watch out for] by Sean McGrath
*[http://www.w3.org/2008/02/xml10-pressrelease W3C XML is Ten!], XML 10 years press release
<!--
PLEASE NOTE: If you wish to add additional external links, please discuss it on the talk page first, since this article is prone to linkfarming.
-->
* {{Official website|https://www.w3.org/XML/}}, World Wide Web Consortium (W3C)
* [https://www.w3.org/TR/REC-xml/ XML 1.0 Specification]
* [http://xml.ascc.net/en/utf-8/ercsretro.html Retrospective on Extended Reference Concrete Syntax] {{Webarchive|url=https://web.archive.org/web/20191118064318/http://xml.ascc.net/en/utf-8/ercsretro.html |date=2019-11-18}} by [[Rick Jelliffe]]
* [http://www.xml.com/pub/a/w3j/s3.bosak.html ''XML, Java and the Future of the Web''] (1997) by [[Jon Bosak]]
* [https://validator.w3.org/ The Official (W3C) Markup Validation Service]
* [http://xml.silmaril.ie/ The XML FAQ] originally for the W3C's XML SIG by Peter Flynn
 
{{W3C Standardsstandards}}
{{Web browsers}}
{{Data exchange}}
{{Semantic Web}}
{{Authority control}}
 
{{DEFAULTSORT:Xml}}
[[Category:XML| ]]
[[Category:MarkupApplication languageslayer protocols]]
[[Category:WorldArticles Widewith Webexample Consortium standardscode]]
[[Category:Technical communication]]
[[Category:Bibliography file formats]]
[[Category:Computer file formats]]
[[Category:Open formats]]
[[Category:Data modeling languages]]
[[Category:Data serialization formats]]
[[Category:ApplicationMarkup layer protocolslanguages]]
[[Category:Open formats]]
[[Category:Presentation layer protocols]]
[[Category:Technical communication]]
 
[[Category:World Wide Web Consortium standards]]
[[af:XML]]
[[Category:SGML]]
[[ar:لغة الرقم القابلة للامتداد]]
[[bn:এক্সটেনসিভ মার্কআপ ল্যাংগুয়েজ]]
[[bs:XML]]
[[bg:XML]]
[[ca:Extensible Markup Language]]
[[cs:Extensible Markup Language]]
[[da:XML]]
[[de:Extensible Markup Language]]
[[et:XML]]
[[es:Extensible Markup Language]]
[[eo:XML]]
[[eu:XML]]
[[fa:اکس‌ام‌ال]]
[[fr:Extensible Markup Language]]
[[ga:XML]]
[[gl:XML]]
[[ko:XML]]
[[hi:क्षमल]]
[[hr:XML]]
[[id:Extensible markup language]]
[[ia:XML]]
[[is:XML]]
[[it:XML]]
[[he:XML]]
[[lo:XML]]
[[lv:Valoda XML]]
[[lt:XML]]
[[hu:XML]]
[[ml:എക്സ്.എം.എല്‍.]]
[[ms:XML]]
[[nl:Extensible Markup Language]]
[[ja:Extensible Markup Language]]
[[no:XML]]
[[nn:XML]]
[[pl:XML]]
[[pt:XML]]
[[ro:XML]]
[[ru:XML]]
[[sq:XML]]
[[simple:XML]]
[[sk:XML]]
[[sl:XML]]
[[sr:XML]]
[[fi:XML]]
[[sv:XML]]
[[th:เอกซ์เอ็มแอล]]
[[tg:XML]]
[[tr:Genişletilebilir işaretleme dili]]
[[tk:XML]]
[[uk:XML]]
[[ur:توسیعی زبان تدوین]]
[[vi:XML]]
[[bat-smg:XML]]
[[zh:XML]]