@Override public void characters(char ch[], int start, int length) { String chars = new String(ch, start, length); if (this.in_seriesTag) { // Get all the Series Info if (this.in_seriesNameTag) { series.TITLE = series.TITLE == null ? chars : series.TITLE + chars; } else if (this.in_lastUpdatedTag) { series.LAST_UPDATED = series.LAST_UPDATED == null ? chars : series.LAST_UPDATED + chars; } else if (this.in_ratingCountTag) { // series.RATING_COUNT = new Float(chars).floatValue(); series.RATING_COUNT = Float.valueOf(chars); ; } else if (this.in_ratingTag) { // series.RATING = new Float(chars).floatValue(); series.RATING = Float.valueOf(chars); } else if (this.in_overviewTag) { series.OVERVIEW = series.OVERVIEW == null ? chars : series.OVERVIEW + chars; } else if (this.in_idTag) { series.ID = series.ID == null ? chars : series.ID + chars; } else if (this.in_posterTag) { series.POSTER_URL = series.POSTER_URL == null ? chars : series.POSTER_URL + chars; } else if (this.in_statusTag) { series.STATUS = series.STATUS == null ? chars : series.STATUS + chars; } else if (this.in_seriesNameTag) { series.TITLE = series.TITLE == null ? chars : series.TITLE + chars; } else if (this.in_runtimeTag) { series.RUNTIME = series.RUNTIME == null ? chars : series.RUNTIME + chars; } else if (this.in_networkTag) { series.NETWORK = series.NETWORK == null ? chars : series.NETWORK + chars; } else if (this.in_IMDBTag) { series.IMDB_ID = series.IMDB_ID == null ? chars : series.IMDB_ID + chars; } else if (this.in_genreTag) { series.GENRE = series.GENRE == null ? chars : series.GENRE + chars; } else if (this.in_contentRatingTag) { series.CONTENT_RATING = series.CONTENT_RATING == null ? chars : series.CONTENT_RATING + chars; } else if (this.in_airTimeTag) { series.AIRS_TIME = series.AIRS_TIME == null ? chars : series.AIRS_TIME + chars; } else if (this.in_airsDayOfWeekTag) { series.AIRS_DAYOFWEEK = series.AIRS_DAYOFWEEK == null ? chars : series.AIRS_DAYOFWEEK + chars; } else if (this.in_actorsTag) { series.ACTORS = series.ACTORS == null ? chars : series.ACTORS + chars; } else if (this.in_firstAired) { series.FIRST_AIRED = series.FIRST_AIRED == null ? chars : series.FIRST_AIRED + chars; } } else if (this.in_episodeTag) { // Get all the information for each episode if (this.in_idTag) { episode.ID = episode.ID == null ? chars : episode.ID + chars; } else if (this.in_episodeNameTag) { episode.TITLE = episode.TITLE == null ? chars : episode.TITLE + chars; } else if (this.in_overviewTag) { episode.OVERVIEW = episode.OVERVIEW == null ? chars : episode.OVERVIEW + chars; } else if (this.in_filenameTag) { episode.IMAGE_URL = episode.IMAGE_URL == null ? chars : episode.IMAGE_URL + chars; } else if (this.in_guestStarsTag) { episode.GUEST_STARS = episode.GUEST_STARS == null ? chars : episode.GUEST_STARS + chars; } else if (this.in_ratingTag) { // episode.RATING = new Float(chars).floatValue(); episode.RATING = Float.valueOf(chars); } else if (this.in_ratingCountTag) { // episode.RATING_COUNT = new Float(chars).floatValue(); episode.RATING_COUNT = Float.valueOf(chars); } else if (this.in_episodeNumberTag) { episode.EPISODE_NUMBER = Integer.parseInt(chars); } else if (this.in_seasonNumberTag) { episode.SEASON_NUMBER = Integer.parseInt(chars); if (!containsSeason(Integer.parseInt(chars))) { seasonList.add(Integer.parseInt(chars)); } } else if (this.in_lastUpdatedTag) { episode.LAST_UPDATED = episode.LAST_UPDATED == null ? chars : episode.LAST_UPDATED + chars; } else if (this.in_firstAired) { episode.FIRST_AIRED = episode.FIRST_AIRED == null ? chars : episode.FIRST_AIRED + chars; } } }