1. Concepts
XML: Extensible Markup Language, similar to the HTML tags. Scalability refers to the absence of prescribed, restricted, and fixed tags. There are two kinds of parsing Methods: Sax and Dom.
DOM: loads all XML documents into the memory, parses them into a tree, and then performs operations. If the XML document is large, the effect is not good.
Sax: Simple API for XML is an interface and a software package. It scans documents in a row-by-row order and parses documents while scanning. You can stop parsing documents as needed at any time.
However, operations are complex and inconvenient. It is difficult to add or delete data to or from a document. As an interface, Sax is a standard interface for event-driven XML parsing.
2. series of events during file Splitting:
(1. Create event processingProgram
(2) create a SAX Parser
(3) Allocate the event handler to the parser
(4) parse the document and send each event to the handler