public void initFromXML( Element node, String workDir, String projectDir )
  {
    clear();

    NodeList nList = node.getElementsByTagName("default") ;
    TLanguageFile dummy ;

    // default entry found
    if (nList != null)
    {
      if (nList.getLength() > 0)
      {
        dummy = initSingle( (Element) nList.item(0), workDir, projectDir) ;
        if (dummy != null)
        {
          addDefaultVersion(dummy, false) ;
        }
      }
    }

    // all other files
    nList = node.getElementsByTagName("file") ;
    if (nList != null)
    {
      for(int t = 0, len = nList.getLength() ; t < len ; t++)
      {
        dummy = initSingle( (Element) nList.item(t), workDir, projectDir) ;
        if (dummy != null)
        {
          addLanguageVersion(dummy) ;
        }
      }
    }
  }