Crazy XML learning notes (10) --------- role of XML, crazy xml Handouts

Source: Internet
Author: User

Crazy XML learning notes (10) --------- role of XML, crazy xml Handouts

I haven't sorted out XML knowledge for a long time. It's time to sort it out. On the one hand, the teacher is about to finish the course. I should review it and sort out my ideas, I can't learn it all over again. On the other hand, I hope to have a thorough understanding of XML. Below

To sum up what are the main uses of XML, we also encourage ourselves to better master XML. In fact, XML has many functions!

Web http://blog.csdn.net/column/details/studyxml.html for previous summary of xml knowledge

 

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 HTML documents, it will take a lot of time to edit HTML whenever the data changes.

With XML, data can be stored in an independent XML file. In this way, you can focus on HTML layout and display, and make sure that you do not need to make any changes to HTML to modify the underlying data.

By using several lines of JavaScript, you can read an external XML file and update the data content in HTML.

 

XML simplifies data sharing

In the real world, computer systems and data are stored in incompatible formats.

XML data is stored in plain text format. Therefore, a data storage method independent of software and hardware is provided.

This makes it easier to create data that can be shared by different applications.

Simplified XML Data Transmission

With XML, data can be easily exchanged between incompatible systems.

One of the most time-consuming challenges for developers is the exchange of data between incompatible systems on the Internet.

Since data can be read through a variety of incompatible applications, exchanging data in XML reduces this complexity.

Simplified XML platform change

Upgrading to a new system (hardware or software platform) is always time-consuming. A large amount of data must be converted, and incompatible data is often lost.

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

XML makes your data more useful

Because XML is independent of hardware, software, and applications, XML makes your data more available and useful.

Different applications can access your data, not only on 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.), and for blind or other persons with disabilities.

XML is used to create a new Internet language.

Many new Internet languages are created using XML:

Examples include:

  • XHTML-Latest HTML Version
  • WSDL-used to describe available web service (web service description language)
  • WAP and WML-markup language for handheld devices
  • RSS-language for RSS feed
  • RDF and OWL-used to describe resources and Ontology
  • SMIL-used to describe web-targeted multimedia
If developers are rational

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

In the future, some word processing software, spreadsheet programs, and databases may appear. They can read data from each other in plain text format without any conversion programs.

What we can do now is to pray that Microsoft and all other software developers have agreed on this.

 

Other functions:

1. Data Exchange
It is no longer a secret to use XML for data exchange between applications and companies. It should undoubtedly be put first.
So why is XML so important in this field? The reason is that XML uses elements and attributes to describe the number.
Data. During data transmission, XML always retains data structures such as parent/child relationships. Several applications
You can share and parse the same XML file without using the traditional String Parsing or disassembling process.
On the contrary, normal files do not describe each data segment (except in the header file), and do not retain the data link structure. Enable
Using XML for data exchange can make the application more flexible, because it can use location (the same as normal file) or metadata
To access XML data.
2. Web Services
Web services are one of the most exciting revolutions that allow people using different systems and programming languages to interact with each other.
Stream and share data. The Foundation is that the Web server uses XML to exchange data between systems. Common XML labels for exchanging data
For example, in Simple Object Access Protoc
Ol, SOAP) platform.
SOAP can transmit messages between objects constructed in different programming languages. This means that a C # object can be associated with
Java objects for communication. This communication can even happen between objects running on different operating systems. DCOM
, Or Java RMI can only transmit messages between tightly coupled objects, while SOAP can transmit messages between loosely coupled objects.
Deliver messages.
3. Content Management
XML uses only elements and attributes to describe data, rather than data display methods. In this way, XML provides an excellent
Show method to mark content independent of platform and language.
XML files can be easily converted into various formats using languages like XSLT, such as HTML, WML, and PD.
F, flat file, EDI, and so on. XML can run on different system platforms and convert to different formats
The ability of the target file makes it an excellent choice in the content management application system.
4. Web Integration
More and more devices now support XML. Allows Web developers
Use XML to transmit data.
Why is XML text directly sent to such a device? The purpose of this operation is to allow users to master more data on their own.
Display Mode to better experience the joy of practice. Conventional customer/service (C/S) methods to obtain data sorting or more
To change the display format, you must send an application to the server. XML can directly process the data without applying to the server.
Please query-two-way "Journey" like the returned result, and no database needs to be prepared on the device.
You can even modify the XML file on the device and return the result to the server. Imagine that one is mutually beneficial.
The Internet function and XML-based refrigerator will have a huge impact on the market. You don't have to get up early to get milk
Now!
5. Preparation
Many applications store the prepared data in various files, such as. ini files. Although this file format has been used
It has been used for many years and has been very useful, but XML still marks the preparation of data for the application in a better way. Use.
. NET classes, such as XmlDocument and XmlTextReader, mark the prepared data as XML to make it more
It is readable and can be easily integrated into the application system. Applications that use XML to prepare files can easily Process
The required data does not need to be re-compiled to modify and maintain the application system as other applications do.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.