import javax.xml.parsers.*; import javax.xml.transform.*; import javax.xml.transform.dom.*; import javax.xml.transform.stream.*; import org.w3c.dom.*; import java.io.*; public class Faililoetelu3{ public static void main(String argumendid[]) throws Exception{ Document d=DocumentBuilderFactory.newInstance(). newDocumentBuilder().parse("faililoetelu.xml"); NodeList fnimed=((Element)d.getFirstChild()).getElementsByTagName("fail"); System.out.println(fnimed.getLength()); for(int i=0; i