public void initFromXML( Element node )
  {
    NodeList nList = node.getElementsByTagName("replacespace") ;
    Element elem = null ;

    // a settings entry was found
    if (nList != null)
    {
      if (nList.getLength() > 0)
      {
        elem = (Element) nList.item(0) ;
        Boolean bool = new Boolean( elem.getAttribute("enable") ) ;
        this.setReplaceWhitespace( bool.booleanValue() ) ;
        this.setReplaceString( elem.getAttribute("string"));
      }
    }

    nList = node.getElementsByTagName("emptykeys") ;
    // a settings entry was found
    if (nList != null)
    {
      if (nList.getLength() > 0)
      {
        elem = (Element) nList.item(0) ;
        Boolean bool = new Boolean( elem.getAttribute("enable") ) ;
        this.setSaveEmptyKeys( bool.booleanValue() ) ;
      }
    }

    nList = node.getElementsByTagName("saveWYSIWYGmode") ;
    // a settings entry was found
    if (nList != null)
    {
      if (nList.getLength() > 0)
      {
        elem = (Element) nList.item(0) ;
        Boolean bool = new Boolean( elem.getAttribute("enable") ) ;
        this.setSaveWYSIWYGmode( bool.booleanValue() ) ;
      }
    }
  }