XML Uses
XML is used in many aspects of web development and is often used to simplify data storage and sharing.
XML separates data from HTML
If you need to display dynamic data in an HTML document, it will take a lot of time to edit the HTML whenever the data changes.
With XML, data can be stored in separate XML files. This lets you focus on using HTML/CSS for display and layout, and ensures that changing the underlying data no longer requires any changes to the HTML.
With just 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 way of storing data.
This makes it easier to create data that can be shared by different applications.
XML simplifies data transport
For developers, one of the most time-consuming challenges has always been exchanging data between incompatible systems over the Internet.
Since the data can be read by various incompatible applications, exchanging data in XML reduces this complexity.
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 it easier to expand or upgrade to a new operating system, new application, or new browser without losing data.
XML makes your data more useful
Different applications can access your data, not only in HTML pages but also from XML data sources.
Through XML, your data can be used by various reading devices (PDAs, voice devices, news readers, etc.) and also by blind or otherwise disabled people.
XML is used to create new Internet languages
Many new Internet languages are created with XML.
Here are some examples:
- XHTML
- WSDL, used to describe available web services
- WAP and WML as markup languages for handheld devices
- The RSS language for news feeds
- RDF and OWL for describing capital and ontology
- SMIL for describing multimedia for the Web
If developers are rational
If they are rational, let future applications use XML to exchange data.
In the future, there may be word processors, spreadsheet programs, and databases that can read each other's data in XML format without using any conversion programs.