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;