int nrOMA; NodeList elListOMA; elListOMA = CurrentNodeElement.getElementsByTagName("OMA"); nrOMA = elListOMA.getLength(); //boolean elementary; //if ( nrOMA > 0 ){ // elementary = false; //} //else{ // elementary = true; //};