Simplifies the use of XmlPullParser.