AXMLParser cherry picked from android4me https://code.google.com/p/android4me/