get node inside node in of xml using java

Solutions on MaxInterview for get node inside node in of xml using java by the best coders in the world

showing results for - "get node inside node in of xml using java"
Luka
03 Apr 2020
1    for (int temp = 0; temp < NodeOzet.getLength(); temp++){
2        Node nOzet = NodeOzet.item(temp);
3        NodeList carList = eElement.getElementsByTagName("cars")
4        String cars = "";
5        for(int temp2 = 0; temp2 < carList.getLength(); temp2++){
6             cars += ((Element)carList.item(temp2)).getAttribute("carname") + "\t";
7        }
8     }