Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get node inside node in of xml using java

    for (int temp = 0; temp < NodeOzet.getLength(); temp++){
        Node nOzet = NodeOzet.item(temp);
        NodeList carList = eElement.getElementsByTagName("cars")
        String cars = "";
        for(int temp2 = 0; temp2 < carList.getLength(); temp2++){
             cars += ((Element)carList.item(temp2)).getAttribute("carname") + "	";
        }
     }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #node #node #xml #java
ADD COMMENT
Topic
Name
2+6 =