Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NodeList nl = docEle.getElementsByTagName("Album");
- for (int temp = 0; temp < nl.getLength(); temp++) {
- Element al = (Element)nl.item(temp);
- if (compareSearchwithAlbum(searchName, al)) {
- NodeList nlist = docEle.getElementsByTagName("Song");
- for (int i = 0; i < nlist.getLength(); i++) {
- Element s = (Element)nlist.item(i);
- searchedSongs.add(new Song (getString(s, "SongTitle"), getString(s, "AlbumTitle"), getInt(s, "Price"), getInt(s, "Year")));
- // return or do something here
- }
- }
- }
Add Comment
Please, Sign In to add comment