XML uses

 

XML applied to many aspects of 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 for 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, you can read an external XML file and then update the data content in HTML.

Tip: You will learn more on this in a later chapter.

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

By XML, you can easily exchange data between incompatible systems.

For developers, one of the most time-consuming challenge has been to exchange 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 change

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

Since XML is independent of hardware, software and applications, XML makes your data more available, and 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:

Examples include:

  • XHTML - the latest version of HTML
  • WSDL - used to describe a web service available
  • WAP and WML - markup languages ​​for handheld devices
  • RSS - language used for the RSS feed
  • RDF and OWL - a description of the resources and the body
  • SMIL - a 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 plain text format without the need for any conversion program.

We can do now is pray for all Microsoft and other software developers reach agreement in this regard.

Reproduced in: https: //www.cnblogs.com/Codenewbie/archive/2013/04/07/3003636.html

Guess you like

Origin blog.csdn.net/weixin_34161083/article/details/93448071