XML
m (added category ! as the general overview page of the category) |
(Added sample files) |
||
(13 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{FormatInfo | {{FormatInfo | ||
|formattype=electronic | |formattype=electronic | ||
− | |subcat= | + | |subcat=Markup |
+ | |thiscat=XML | ||
|extensions={{ext|xml}} | |extensions={{ext|xml}} | ||
|mimetypes= | |mimetypes= | ||
{{mimetype|application/xml}}<br> | {{mimetype|application/xml}}<br> | ||
{{mimetype|text/xml}} | {{mimetype|text/xml}} | ||
+ | |pronom={{PRONOM|fmt/101}} | ||
+ | |released=~1998 | ||
}} | }} | ||
− | + | [[XML]] (Extensible Markup Language) is a markup language used to encode data. | |
XML is a language from which languages are made. A body of rules for how an XML document for specific purpose may be constructed is often called a "language" or a "format" in its own right. These rules may be specified in several different ways, the most common being Document Type Definition (DTD) and Schema. A document which follows the syntactic rules of XML is considered "well-formed." A document which is well-formed and also conforms to its DTD or schema declarations is considered "valid." | XML is a language from which languages are made. A body of rules for how an XML document for specific purpose may be constructed is often called a "language" or a "format" in its own right. These rules may be specified in several different ways, the most common being Document Type Definition (DTD) and Schema. A document which follows the syntactic rules of XML is considered "well-formed." A document which is well-formed and also conforms to its DTD or schema declarations is considered "valid." | ||
Line 13: | Line 16: | ||
A Document Type Definition may be included in an XML document or be referenced by a Document Type Declaration, or both approaches may be combined. An external reference to a DTD is provided by a Document Type Declaration, which confusingly has the same initials. | A Document Type Definition may be included in an XML document or be referenced by a Document Type Declaration, or both approaches may be combined. An external reference to a DTD is provided by a Document Type Declaration, which confusingly has the same initials. | ||
− | A Schema, unlike a DTD, is itself written in XML. A document can have a Schema for each of its namespaces. DTDs have been largely superseded by Schemas because of the former's limitation of one DTD per document and the latter's greater capacity for describing rules and namespace support. | + | A [[XML Schema Definition|Schema]], unlike a DTD, is itself written in XML. A document can have a Schema for each of its namespaces. DTDs have been largely superseded by Schemas because of the former's limitation of one DTD per document and the latter's greater capacity for describing rules and namespace support. |
XML documents refer to both Schemas and DTDs by a URI. It is crucial to remember that this reference is a Universal Resource Identifier, nor a Universal Resource Locator (URL). There is no requirement that the URI point to a resource on the Internet, or even that such a resource exist. This is a potential preservation risk with XML documents, as they may outlive the DTD and Schema documents that characterize them, or the documents may move and be difficult to locate. | XML documents refer to both Schemas and DTDs by a URI. It is crucial to remember that this reference is a Universal Resource Identifier, nor a Universal Resource Locator (URL). There is no requirement that the URI point to a resource on the Internet, or even that such a resource exist. This is a potential preservation risk with XML documents, as they may outlive the DTD and Schema documents that characterize them, or the documents may move and be difficult to locate. | ||
Line 19: | Line 22: | ||
There are variants of [[HTML]] which are expressed in XML-compliant syntax (which, for instance, requires the tags to be consistently lowercase, and elements with no closing tag have a slash before the right angle bracket at the end of the tag, like <BR /> instead of <BR>), and these are known as XHTML. This format may be served under the XML or HTML MIME types, and browsers might treat them differently in these cases. | There are variants of [[HTML]] which are expressed in XML-compliant syntax (which, for instance, requires the tags to be consistently lowercase, and elements with no closing tag have a slash before the right angle bracket at the end of the tag, like <BR /> instead of <BR>), and these are known as XHTML. This format may be served under the XML or HTML MIME types, and browsers might treat them differently in these cases. | ||
− | + | While XML is a text-based format, there are also [[binary XML]] representations. | |
+ | == Specifications == | ||
* [http://www.w3.org/TR/xml/ XML 1.0] | * [http://www.w3.org/TR/xml/ XML 1.0] | ||
** [http://www.w3.org/TR/2008/REC-xml-20081126/ XML 1.0, Fifth Edition (2008-11-26)] | ** [http://www.w3.org/TR/2008/REC-xml-20081126/ XML 1.0, Fifth Edition (2008-11-26)] | ||
Line 31: | Line 35: | ||
** [http://www.w3.org/TR/2004/REC-xml11-20040204/ XML 1.1, First Edition (2004-04-15)] | ** [http://www.w3.org/TR/2004/REC-xml11-20040204/ XML 1.1, First Edition (2004-04-15)] | ||
− | == | + | == Software == |
+ | * [http://www.ltg.ed.ac.uk/software/ltxml2/ LT-XML 2 XML toolkit] | ||
+ | * [http://basex.org/ BaseX XML database engine] | ||
+ | == Sample files == | ||
+ | * {{DexvertSamples|text/xml}} | ||
+ | |||
+ | == External links == | ||
* [http://www.w3.org/XML/ W3C XML Homepage] | * [http://www.w3.org/XML/ W3C XML Homepage] | ||
* [http://www.w3.org/XML/Core/ W3C XML Core Working Group Public Page] | * [http://www.w3.org/XML/Core/ W3C XML Core Working Group Public Page] | ||
+ | * [[Wikipedia:XML|Wikipedia article]] | ||
+ | * [http://sapphirepaw.blogspot.com/2010/08/on-xml-and-data-formats.html On XML and data formats] | ||
+ | * [http://gccxml.github.io/HTML/Index.html GCC-XML: convert C++ code to XML] | ||
+ | * [http://wiki.dpconline.org/images/b/bd/XML_Assessment_v1.2.pdf XML Format Preservation Assessment] | ||
+ | [[Category:Metaformats]] | ||
[[Category:Text-based data]] | [[Category:Text-based data]] | ||
− | [[Category:XML based file formats | + | [[Category:XML based file formats]] |
Latest revision as of 14:58, 28 December 2023
XML (Extensible Markup Language) is a markup language used to encode data.
XML is a language from which languages are made. A body of rules for how an XML document for specific purpose may be constructed is often called a "language" or a "format" in its own right. These rules may be specified in several different ways, the most common being Document Type Definition (DTD) and Schema. A document which follows the syntactic rules of XML is considered "well-formed." A document which is well-formed and also conforms to its DTD or schema declarations is considered "valid."
A Document Type Definition may be included in an XML document or be referenced by a Document Type Declaration, or both approaches may be combined. An external reference to a DTD is provided by a Document Type Declaration, which confusingly has the same initials.
A Schema, unlike a DTD, is itself written in XML. A document can have a Schema for each of its namespaces. DTDs have been largely superseded by Schemas because of the former's limitation of one DTD per document and the latter's greater capacity for describing rules and namespace support.
XML documents refer to both Schemas and DTDs by a URI. It is crucial to remember that this reference is a Universal Resource Identifier, nor a Universal Resource Locator (URL). There is no requirement that the URI point to a resource on the Internet, or even that such a resource exist. This is a potential preservation risk with XML documents, as they may outlive the DTD and Schema documents that characterize them, or the documents may move and be difficult to locate.
There are variants of HTML which are expressed in XML-compliant syntax (which, for instance, requires the tags to be consistently lowercase, and elements with no closing tag have a slash before the right angle bracket at the end of the tag, like <BR /> instead of <BR>), and these are known as XHTML. This format may be served under the XML or HTML MIME types, and browsers might treat them differently in these cases.
While XML is a text-based format, there are also binary XML representations.
Contents |