XML usage
XML is used in many aspects of web development, often to simplify the storage and sharing of data.
XML Separates Data from HTML
If you need to display dynamic data in an HTML document, you will spend a lot of time editing the HTML every time the data changes.
With XML, data can be stored in separate XML files. This way you can focus on using HTML/CSS for display and layout, and ensure that modifying the underlying data doesn't require any changes to the HTML.
By using a few lines of JavaScript code, you can read an external XML file and update the data content of your web page.
XML simplifies data sharing
In the real world, computer systems and data use incompatible formats to store data.
XML data is stored in plain text format, thus providing a software- and hardware-independent method of data storage.
This makes it easier to create data that different applications can share.
XML Simplifies Data Transfer
One of the most time-consuming challenges for developers has always been exchanging data between incompatible systems on the Internet.
Exchanging data with XML reduces this complexity because the data can be read by a variety of incompatible applications.
XML simplifies platform changes
Upgrading to a new system (hardware or software platform) is always very time-consuming. Large amounts of data must be converted, and incompatible data is often lost.
XML data is stored in text format. This makes XML easier to extend or upgrade to new operating systems, new applications, or new browsers without losing data.
XML makes your data more useful
Different applications can access your data, not just in HTML pages, but also from XML data sources.
With XML, your data can be used by a variety of reading devices (handheld computers, voice devices, news readers, etc.), as well as by people who are blind or otherwise disabled.
XML is used to create new Internet languages
Many new Internet languages are created through XML.
Here are some examples:
XHTML
WSDL used to describe available Web services
WAP and WML as markup languages for handheld devices
RSS language for news feeds
Description Capital and ontology's RDF and OWL
SMIL used to describe multimedia for the Web
If developers are rational
If they are all rational, let future applications use XML to exchange data.
In the future, there may be word processing software, spreadsheet programs, and databases that can read each other's data in XML format without using any conversion programs.