I've met a lot of people at seminars and workshops, and they don't understand why they're using XML and don't know how to
Use XML in their applications. Some of the reports from Gartner suggest that commercial companies can no longer do
Outsiders, and cannot ignore XML. If you're not sure what the benefits of XML are, you're not the only
One.
I decided to put together a conversation about XML with people and the media, listing five of the most exciting XML applications
The use of love. Although these do not contain all of the potential applications of XML, at least some of the most important areas.
1. Data exchange
Using XML to Exchange data between applications and companies is no secret and should be ranked first.
So why is XML so important in this field? The reason is that XML uses elements and attributes to describe the number
According Throughout the data transfer process, XML retains data structures such as parent/child relationships. Several applications
You can share and parse the same XML file without having to use the traditional string parsing or dismantling process.
Instead, the normal file does not describe each data segment (except in the header file), nor does it preserve the data relationship structure. Make
Data exchange with XML makes the application more resilient because it can be used as a location (as with a normal file) or as a
The element name (from the database) to access the XML data.
2, Web Services
Web Services is one of the most exciting revolutions in making it possible for people with different systems and different programming languages to communicate with each other
Stream and share data. This is based on the fact that the Web server uses XML to exchange data between systems. Exchange data is typically XML-labeled
Can make the protocol get the same specification, for example, in the Simple Object Processing protocol (simply objects Access Protoc
OL, SOAP) platform.
Soap can pass messages between objects that are constructed in different programming languages. This means that a C # object can be associated with a
Java object for communication. This communication can even occur between objects running on different operating systems. Dcom
, CORBA or Java RMI can only pass messages between tightly coupled objects, and soap can pass between loosely coupled objects
Handing messages.
3. Content Management
XML describes data only with elements and attributes, and does not provide a way to display data. In this way, XML provides an excellent
Show methods to mark content that is independent of platform and language.
Using a language like XSLT makes it easy to convert XML files into various format files, such as HTML, WML, PD
F, flat file, EDI, and so on. XML has the ability to run between different system platforms and convert to different formats
The ability of the target file makes it a good choice in the Content management application system.
4. Web Integration
More and more devices are now supporting XML as well. Allows web developers to get between personal electronics assistants and browsers
Use XML to pass data.
Why would you send XML text directly into a device like this? The goal is to give users more control over their data.
Display way, more can experience the joy of practice. Regular customer/service (c/s) way to get data sorted or more
In the display format, the request must be made to the server, while XML can process the data directly without having to go through the server
Please query-Returns the result of such a two-way "journey", while the device also does not need to configure the database.
You can even modify the XML file on the device and return the results to the server. Imagine a single, interactive
How much impact will the market have on networking and supporting XML refrigerators? You don't have to get up early to fetch milk.
Out.
5, preparation
Many applications store the configuration data in a variety of files, such as. INI file. Although such a file format has made
It's been used for years and it's always been good, but XML still has a better way of preparing data for application tagging. Use.
NET, such as XmlDocument and XmlTextReader, to mark the configuration data as XML format, to make it more
Readability, and can be easily integrated into the application system. Applications that use XML to prepare files can easily handle
The required data, not to be recompiled like other applications to modify and maintain the application system.
As mentioned earlier, the five ways to use XML mentioned here do not cover all the scenarios.
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