import javax.xml.parsers.*; import javax.xml.transform.*; import javax.xml.transform.dom.*; import javax.xml.transform.stream.*; import java.io.*; import org.w3c.dom.*; public class Faililoetelu1{ public static void main(String argumendid[]) throws Exception{ File kataloog=new File("."); // . on jooksev kataloog String failinimed[]=kataloog.list(); Document d=DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); Element juur=d.createElement("failid"); d.appendChild(juur); for(int i=0; i