Android: DOM vs SAX vs XMLPullParser parsing?

后端 未结 3 1604
鱼传尺愫
鱼传尺愫 2021-02-14 01:02

I am parsing XML Document using SAX Parser.

I want to know which is better and faster to work with DOM, SAX Parser or XMLPullPa

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-14 01:42

    The SAX XML Parser already available into the Android SDK.

    http://developer.android.com/reference/org/xml/sax/XMLReader.html

    so it is easy to access.

提交回复
热议问题