title: How to remove a XML node using JDOM?
body: <p>Here is my code:</p>
  
  <pre><code>try
  {
      Document fichero = (Document) builder.build( xmlFile );
      Element rootNode = fichero.getRootElement();
      List list = rootNode.getChildren( "fichada" );
      for ( int i = 0; i &lt; list.size(); i++ )
      {
          Element tabla = (Element) list.get(i);
          String term = tabla.getChildTextTrim("N_Terminal");
          String tarj = tabla.getChildTextTrim("Tarjeta");
          String fech = tabla.getChildTextTrim("Fecha");
          String horaEnXML = tabla.getChildTextTrim("Hora");
          String caus = tabla.getChildTextTrim("Causa");    
          //HERE I WANT TO DELETE THE NODE 
      }
  } catch ( IOException io ) {
      System.out.println( io.getMessage() );
  } catch ( JDOMException jdomex ) {
      System.out.println( jdomex.getMessage() ); 
  }
  </code></pre>
  
  <p>I need to delete the node just after saving the values in the variables, how can I do it?</p>