Analysis of network data of iOS development (II.) Introduction to--xml Analysis

Source: Internet
Author: User

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

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.