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.

23 lines
638 B

  1. import Modelo.Empleado;
  2. import java.io.File;
  3. import java.io.IOException;
  4. import java.util.List;
  5. public class Main {
  6. public static void main(String[] args) {
  7. try{
  8. File fichero = new File("/home/michael/Documents/SpringProjects/Ejercicio_10/src/empleado.xml");
  9. Parser parser = new Parser(new File(fichero.toURI()));
  10. parser.startParser();
  11. if (parser.startParser()){
  12. List<Empleado> empleados = parser.getEmpleado();
  13. System.out.println(empleados);
  14. }
  15. }catch (IOException e){
  16. e.printStackTrace();
  17. }
  18. }
  19. }