You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

24 lines
638 B

import Modelo.Empleado;
import java.io.File;
import java.io.IOException;
import java.util.List;
public class Main {
public static void main(String[] args) {
try{
File fichero = new File("/home/michael/Documents/SpringProjects/Ejercicio_10/src/empleado.xml");
Parser parser = new Parser(new File(fichero.toURI()));
parser.startParser();
if (parser.startParser()){
List<Empleado> empleados = parser.getEmpleado();
System.out.println(empleados);
}
}catch (IOException e){
e.printStackTrace();
}
}
}