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.
- DOM Parser
- SAX Parser
- 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.