XML advantages and disadvantages

Source: Internet
Author: User
Tags unpack

There is not much understanding and use of XML. This is a summary of the advantages and disadvantages of XML in the video of a lecture. Sorry! I will continue to learn about XML.

Advantage: scalability
Although XML has many other characteristics, its scalability is self-evident. It can be said that "nothing is part of XML extension ". In business design, the scalability of the business is very related to the design of the basic data structure. If we want to add a field to the basic data structure by using a database to store the basic data structure, in this case, the entire business needs to be re-loaded. However, if XML is used for storage, You can flexibly add fields;
Disadvantages: low data loads and resource consumption by pack/unpack
Open an XML file and find that all the useful data in the file is surrounded by tags. No matter the length of the data or other attributes, it will be surrounded, if XML is transmitted over the network or converted into a data stream, it is clear that the data payload is directly reduced. In addition, the tag usage, parent tag, and sub-tag layering make both the XML pack and unpack consume resources, including CPU and memory.

There are several solutions to the disadvantages:
1. Reduce the amount of data occupied by tags and increase the effective information ratio;
2. The tag merge scheme is used to describe the data that must appear at the same time with one tag, which can significantly increase the effective load ratio;

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.