((weka.core.converters.AbstractLoader) result).setSource(fl);
((weka.core.converters.AbstractFileLoader) result).setSource(fl);
  public Object readLoader(Element node) throws Exception {    Object      result;    Vector      children;    Element     child;    int         i;    String      name;    String      file;    File        fl;    // for debugging only    if (DEBUG)       trace(new Throwable(), node.getAttribute(ATT_NAME));    m_CurrentNode = node;        result   = Class.forName(node.getAttribute(ATT_CLASS)).newInstance();    children = XMLDocument.getChildTags(node);    file     = "";    for (i = 0; i < children.size(); i++) {      child = (Element) children.get(i);      name  = child.getAttribute(ATT_NAME);      if (name.equals(VAL_FILE))        file = (String) invokeReadFromXML(child);      else        readFromXML(result, name, child);    }    if (file.equals(""))      file = null;    // set file only, if it exists    if (file != null) {      fl = new File(file);      if (fl.exists())        ((weka.core.converters.AbstractLoader) result).setSource(fl);      else        System.out.println("WARNING: The file '" + file + "' does not exist!");    }        return result;  }