May 27, 2021 XML
XML is designed to transfer and store data.
HTML is designed to display data.
Tip: XML is an extensable markup language, and HTML is a hyper-text tag language.
Before you can continue, you need to have a basic understanding of the following:
If you would like to learn about these projects first, please visit these tutorials on our home page.
XML is not an alternative to HTML.
XML and HTML are designed for different purposes:
HTML is designed to display information, while XML is designed to transmit information.
It may be hard to understand, but XML doesn't do anything. XML is designed to structure, store, and transmit information.
The following example is Jani's note to Tove, stored as XML:
The note above is self-descriptive. It contains information about the sender and recipient, with both the title and the message body.
However, this XML document still doesn't do anything. I t's just pure information wrapped in an XML label. We need to write software or programs to transmit, receive, and display this document.
The labels in the above instances are not defined in any XML standard (e.g., slt;to> and slt;from.gt;). These tags were invented by the creators of XML documents.
This is because the XML language does not have predefined labels.
Labels used in HTML are predefined. HTML documents can only use labels that are defined in html standards (e.g., .lt;p.gt;, .lt;h1?gt; and so on).
XML allows creators to define their own labels and their own document structure.
XML complements HTML.
It is important to understand that XML does not replace HTML. In most Web applications, XML is used to transfer data, while HTML is used to format and display data.
The best description of XML is:
XML is a software- and hardware-independent information transfer tool.
XML became the recommended standard for W3C on February 10, 1998.
To learn more about W3C XML activities, visit our W3C tutorial.
Currently, XML plays no less important role in the Web than HTML, which has been the cornerstone of the Web.
XML is the most common tool for data transfer between applications.