code: private boolean parseReleaseTag(XmlPullParser xml, boolean full,
              SparseArray<ReleaseItem> changelog) throws XmlPullParserException, IOException {
  
          String version = xml.getAttributeValue(null, ReleaseTag.ATTRIBUTE_VERSION);
  
          int versionCode;
          try {
              String versionCodeStr = xml.getAttributeValue(null, ReleaseTag.ATTRIBUTE_VERSION_CODE);
              versionCode = Integer.parseInt(versionCodeStr);
          } catch (NumberFormatException e) {
              versionCode = NO_VERSION;
          }
  
          if (!full && versionCode <= mLastVersionCode) {
              return true;
          }
  
          int eventType = xml.getEventType();
          List<String> changes = new ArrayList<String>();
          while (eventType != XmlPullParser.END_TAG || xml.getName().equals(ChangeTag.NAME)) {
              if (eventType == XmlPullParser.START_TAG && xml.getName().equals(ChangeTag.NAME)) {
                  eventType = xml.next();
  
                  changes.add(xml.getText());
              }
              eventType = xml.next();
          }
  
          ReleaseItem release = new ReleaseItem(versionCode, version, changes);
          changelog.put(versionCode, release);
  
          return false;
      }
docs: Parse the {@code release} tag of a change log XML file.
  
  @param xml
  The {@code XmlPullParser} instance used to read the change log.
  @param full
  If {@code true} the contents of the {@code release} tag are always added to
  {@code changelog}. Otherwise only if the item's {@code versioncode} attribute is
  higher than the last version code.
  @param changelog
  The {@code SparseArray} to add a new {@link ReleaseItem} instance to.
  
  @return {@code true} if the {@code release} element is describing changes of a version older
  or equal to the last version. In that case {@code changelog} won't be modified and
  {@link #readChangeLog(XmlPullParser, boolean)} will stop reading more elements from
  the change log file.
  
  @throws XmlPullParserException
  @throws IOException