title: Write XML from arraylist with XStream
body: <p>I have the class Alm_datos, with an arraylist, with some Employees inside:</p>
  
  <pre><code>public class Alm_datos  extends InputSource{
  
       static ArrayList&lt;Empleado&gt; listaEmpleados = new ArrayList&lt;&gt;();
  </code></pre>
  
  <p>An another class, to write the file with xml</p>
  
  <p>public class Xstream {</p>
  
  <pre><code>Alm_datos alm = new Alm_datos();
  
  public void xstreamSerializar() throws FileNotFoundException{
  
      XStream xs = new XStream();
      xs.alias("EmpleadoXS", Empleado.class);
      xs.toXML(alm.listaEmpleados , new leOutputStream("EmpleadosXS.xml"));
  
      }//END METODO
  
  }//END CLASS
  </code></pre>
  
  <p>But it's not fine :S</p>
  
  <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: org/xmlpull/v1/XmlPullParserException
      at com.thoughtworks.xstream.XStream.&lt;init&gt;(XStream.java:369)
      at empleadosaleatorio.Xstream.xstreamSerializar(Xstream.java:18)
      at empleadosaleatorio.EmpleadosAleatorio.menu(EmpleadosAleatorio.java:150)
      at empleadosaleatorio.EmpleadosAleatorio.main(EmpleadosAleatorio.java:17)
  Caused by: java.lang.ClassNotFoundException: org.xmlpull.v1.XmlPullParserException
      at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      ... 4 more
  </code></pre>