Preface: This essay is about XML parsing.
Body:
1. There are 22 ways of parsing xml:
- DOM: Once the entire XML data is loaded into memory for parsing, it is more suitable for parsing small files
- SAX: Starting from the root element, in order to parse an element down, it is more suitable for parsing large files
2. There are many kinds of XML parsing schemes in iOS:
2-1. Third-Party framework:
LIBXML2: pure C language, which is included by default in the iOS SDK while supporting DOM and sax parsing
Gdataxml:dom method Analysis, developed by Google, based on LIBXML2
2-2. Apple native
Nsxmlparser:sax method analysis, easy to use
2-3, I am based on the Apple native Nsxmlparser packaged XML parsing tool
The Hyxmlparser:sax method is easier to use than nsxmlparser, and more concise.
:hyxmlparser
Analysis of network data of iOS development (II.) Introduction to--xml Analysis