SAX parser vs XMLPull parser

后端 未结 7 1278
长情又很酷
长情又很酷 2020-12-12 16:38

I understand the difference between how the SAX parser works vs the XMLPull parser. In fact there\'s a pretty good explanation here:

http://www.firstobject.com/xml-r

7条回答
  •  遥遥无期
    2020-12-12 17:04

    Both the parsers are basically the same memory/time wise. The only thing being that with pull parser you can pull out the events like startelement and endelement and only heed the ones that you want to.

    where as with android sax parsers, you have no choice, you just put code where you want to but you have to include all the events.

    here is a link which you can refer for further reading.

提交回复
热议问题