I’ve just discovered that Android has wrapper for SAX parser that simplifies your code and prevents common mistakes without sacrificing any performance.

import android.sax.*;

http://developer.android.com/reference/android/sax/package-summary.html

You can find very helpful usage example here: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=tests/AndroidTests/src/com/android/unit_tests/SafeSaxTest.java;h=d488a29bdf02ace92f6cbc6f8a42b5d7c42308db;hb=refs/heads/cupcake

happy parsing!