private static List < ShowInfo > processShowInfo ( String searchUrl , String tagName ) throws TVRageException { List < ShowInfo > showList = new ArrayList <> ( ) ; ShowInfo showInfo ; Document doc = getDocFromUrl ( searchUrl ) ; NodeList nlShowInfo = doc . getElementsByTagName ( tagName ) ; if ( nlShowInfo == null || nlShowInfo . getLength ( ) == 0 ) { return showList ; } for ( int loop = 0 ; loop < nlShowInfo . getLength ( ) ; loop ++ ) { Node nShowInfo = nlShowInfo . item ( loop ) ; if ( nShowInfo . getNodeType ( ) == Node . ELEMENT_NODE ) { Element eShowInfo = ( Element ) nShowInfo ; showInfo = parseNextShowInfo ( eShowInfo ) ; showList . add ( showInfo ) ; } } return showList ; }
Get a list of the ShowInfo from the specified tag