Posted in All Posts, Semester 2

Introduction to XML

What is XML?

Extensible Markup Language (XML) is a markup language much like HTML and it was designed to store and transport data. XML was designed to be self-descriptive. Notably, XML is a W3C Recommendation.

Difference between XML and HTML

  • XML was developed to describe data and to focus on what the data represent while HTML was developed to display data and to monitor the way that data looks.
  • HTML is about displaying data, XML is about describing information.
  • XML is a complement of the HTML language, not a substitute.
  • XML is more flexible than HTML as it lets you create your own tags.

The similarity between XML & HTML is that both languages use tags to structure data. This, perhaps is the only real similarity between the two!

The Big Question – What XML does?

To tell the truth, XML doesn’t really do anything, but it structures, stores and transports data.

Use of XML

XML is used to transfer data easily. XML helps user to store data in a structured format.
Instead of integrating data into a HTML document, the data is stored in different XML files. Since XML stores data in plain text format, the file is independent of the platform and thus data can be exported, imported or moved much easier.

Many other languages are based on XML, like XHTML, WAP (handheld devices), or RSS for feeds. So here we have reached some actual uses of XML, as well as the end of this article.

We hope that you found this article to be helpful.
Please share your thoughts in the Comments Section.

If you liked this article, then please like our Facebook page.

Suggested Reading

2 thoughts on “Introduction to XML

Comment your thoughts

This site uses Akismet to reduce spam. Learn how your comment data is processed.