question: private void readDownloadApps ( XmlPullParser parser , Set < DownloadAppInfo > apps ) throws XmlPullParserException , IOException { while ( parser . next ( ) != XmlPullParser . END_TAG ) { if ( parser . getEventType ( ) != XmlPullParser . START_TAG ) { continue ; } String name = parser . getName ( ) ; if ( TAG_APP . equals ( name ) ) { String packageName = parser . getAttributeValue ( null , ATTRIBUTE_PACKAGE_NAME ) ; String downloadLocation = parser . getAttributeValue ( null , ATTRIBUTE_DOWNLOAD_LOCATION ) ; if ( packageName != null && downloadLocation != null ) { apps . add ( new DownloadAppInfo ( packageName , downloadLocation ) ) ; } skipCurrentTag ( parser ) ; } } }
target:  Read a number of apps with download information from the xml parser