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 Failipuu3{ public static void main(String[] argumendid) throws Exception{ Document d=DocumentBuilderFactory.newInstance(). newDocumentBuilder().parse("tulemus.xml"); Element juur=(Element)d.getFirstChild(); NodeList loetelu=juur.getChildNodes(); System.out.println("Juurelemendi kyljes "+loetelu.getLength()); for(int i=0; i