Use XML

Many aspects of XML used in Web development, often used to simplify storage and sharing of data.


XML data separate from HTML

If you need to display dynamic data in an HTML document, then whenever the data changes will take a lot of time to edit the HTML.

By XML, data can be stored in a separate XML file. So you can concentrate on using HTML / CSS layout and display, and be sure to change the underlying data is no longer required to make 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 pages.


XML simplifies data sharing

In the real world, computer systems and data using an incompatible format to store data.

XML data is stored in plain text format, thus there is provided a method of storing data independent of software and hardware.

This allows to create different applications can share data easier.


XML simplifies data transmission

For developers, one of the most time-consuming challenges has been the exchange of data between incompatible systems on the Internet.

Since data can be read by a variety of incompatible applications to exchange data XML reduces this complexity.


XML simplifies the platform changes

Upgrade to the new system (hardware or software platforms), it is always very time consuming. Must convert large amounts of data, incompatible data is often lost.

XML data is stored in text format. This makes XML without loss of data, easier to expand or upgrade to a new operating system, a new application or a new browser.


XML makes your data more useful

Different applications can access your data, not only can also be accessed from XML data source in HTML pages.

By XML, your data is available using a variety of reading devices (handheld computer, voice equipment, news readers, etc.), but also for the blind or other disability.


XML is used to create a new Internet language

Many new Internet languages ​​are created with XML.

Here are some examples:

  • XHTML
  • WSDL is used to describe Web services available
  • As a handheld device markup language of WAP and WML
  • RSS news feed for the language
  • Description RDF and OWL ontology and capital
  • SMIL needle is used to describe multimedia for the Web

If developers are rational

If they are rational, let future applications use XML to exchange data with it.

The future might give us word processors, spreadsheet programs and databases, they can read each other's data in XML format, without the need for any conversion program.

Guess you like

Origin www.cnblogs.com/furuihua/p/11353590.html