Skip to content

Files

Latest commit

 

History

History
16 lines (9 loc) · 608 Bytes

README.md

File metadata and controls

16 lines (9 loc) · 608 Bytes

XML Parser: DOM Parser, SAX Parser, XMLPullParser

XML stands for Extensible Mark-up Language. XML files are commonly parsed in android to retrieve the relevant information from them. There are three types of android XML parser that we can use.

  1. DOM Parser
  2. SAX Parser
  3. XMLPull Parser

This example covers all 3 types.

* Advantage of SAX Parser over DOM
It consumes less memory than DOM.

XmlPullParser, which is an efficient and maintainable way to parse XML on Android.