private static void processAka ( ShowInfo showInfo , Element eShowInfo ) { NodeList nlAkas = eShowInfo . getElementsByTagName ( "aka" ) ; for ( int loop = 0 ; loop < nlAkas . getLength ( ) ; loop ++ ) { Node nShowInfo = nlAkas . item ( loop ) ; if ( nShowInfo . getNodeType ( ) == Node . ELEMENT_NODE ) { Element eAka = ( Element ) nShowInfo ; CountryDetail newAka = new CountryDetail ( ) ; newAka . setCountry ( eAka . getAttribute ( COUNTRY ) ) ; newAka . setDetail ( eAka . getTextContent ( ) ) ; showInfo . addAka ( newAka ) ; } } }
Process AKA information