Uses of xml
XML separates data from html
If you need to update a website dynamically, the kind of effort you have to put is rigorous. But xml, since it separates data and presentational features of that data, it is easier to update the xml file dynamically and html takes care of how data looks.
<html>
<body>
<head>
<title>w3resource-xml</title>
</head>
<body>
<p><b>This is w3resource.com.</b>The largest tutorial on web based development.</p>
<p>We are learning <i>xml</i></p>
</body>
</html>
example xml file:
<xml>
<tutorial>w3resource
<one>html</one>
<two>xml
<subtopic1>Learning xml</subtopic1>
<subtopic2>Learning DTD</subtopic2>
<subtopic3>Learning XSLT</subtopic3>
<subtopic4>Learning xpath</subtopic4>
</two>
<three>css</three>
<four>javascript</four>
<five>ajax</five>
<six>php</six>
<seven>mysql</seven>
<eight>svg</eight>
</tutorial>
</xml>
Here is a list of points on why using XML is beneficial
- XML data is self-describing. That means it contains both data and information about the data. In records of traditional database systems, before you store data, it requires to define relational schemata, file description tables, external data definitions etc. Where as in xml, these things are not required. Because the data itself contains all this information. Now html is also a markup language. But it only defines how a formatted data is being displayed. In contrary, XML guarantees total usability of data. This is very important for seamless integration of data, as far as business applications are concerned.
- XML can be integrated to all the feasible data format like form text and numbers to multimedia like sound, image to active formats like Java Applets or ActiveX Components.
- No programming required to modify the presentation of data - You can change the look and feel of documents or even entire websites with XSL Style Sheets without manipulating the data itself
- Single source for distributed data - XML documents can consist of data from many different databases distributed over multiple servers. In other words: With XML the entire World Wide Web is transformed into a single all-encompassing database.
- Open and extensible - XML’s one-of-a-kind open structure allows you to add other state-of-the-art elements when needed. This means that you can always adapt your system to embrace industry-specific vocabulary.
- Future-oriented technology - XML is the endorsed industry standard of the World Wide Web Consortium (W3C) and is supported by all leading software providers. Furthermore, XML is also the standard today in an increasing number of other industries, for example, health care.
Previous:
XML Tutorial
Next:
XML Elements
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/xml/uses-of-xml.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics