Tell me what you know of the analytical methods of the XML file, What's the difference
DOM(document object model)解析
The entire memory to read all xml, form a tree structure.
Advantages: High resolution efficiency, and can be added or deleted to the document operation
Cons: When large xml file, it will lead to memory overflow.
SAX (Simple API for XML) parsing
Reads a line, a line parsing, based on event-driven
Advantages: will not cause a memory overflow
Disadvantages: slow parsing efficiency, and can only carry out inspection operations