XML is a markup language that you can use to structure and format any kind of data that have multiple purposes, such as the following:
data processing, which may include content that will display on a web page XML is considered extensible because it is more versatile than HTML. With HTML, tags are specific and fixed. With XML, you can invent whatever tag categories you wish and add as many tags as you want to highlight specific information in your code.
The Difference Between XML and HTML
XML and HTML were designed with different goals:
XML was designed to carry data - with focus on what data is HTML was designed to display data - with focus on how data looks XML tags are not predefined like HTML tags are XML does not have any predefined tags like HTML.
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note> The tags in the example above (like <to> and <from>) are not defined in any XML standard. These tags are "invented" by the author of the XML document. XML Documents Must Have a Root Element
XML documents must contain one root element that is the parent of all other elements
XML is also used to create web pages and web applications. It is dynamic because it is used to transport the data not for displaying the data