private static void processSeasons ( EpisodeList epList , NodeList nlSeasons ) { if ( nlSeasons == null || nlSeasons . getLength ( ) == 0 ) { return ; } Node nEpisodeList ; for ( int loop = 0 ; loop < nlSeasons . getLength ( ) ; loop ++ ) { nEpisodeList = nlSeasons . item ( loop ) ; if ( nEpisodeList . getNodeType ( ) == Node . ELEMENT_NODE ) { processSeasonEpisodes ( ( Element ) nEpisodeList , epList ) ; } } }
process the individual seasons