Tuesday, 29 October 2013

XML processing in Android

The Java programming language provides several standard libraries for processing XML files.

 The SAX and the DOM XML parsers are also available on Android.

 The SAX and DOM parsers API is on Android the same as in standard Java.

SAX and DOM have their limitations, therefore it is not recommended to use them on Android.

On Android it is recommended to use the XmlPullParser. It has a relatively simple API compared to SAX and DOM and is fast and requires less memory then the DOM API.

No comments:

Post a Comment