public boolean fromElement(Element element) {
    boolean result = true;
    this.id = X.getAttribute(element, C.id, null);
    this.targetServer = X.getAttribute(element, C.targetServer, null);
    this.targetDatabase = X.getAttribute(element, C.targetDatabase, null);
    NodeList sqlList = element.getElementsByTagName("sql");
    for (int i=0; i<sqlList.getLength(); i++) {
      Sql sql = new Sql();
      result = result && sql.fromElement((Element)sqlList.item(i));
      this.sqls.add(sql);
    }
    result = result && !U.hasNull(id, targetServer, targetDatabase);
    if (U.hasNull(id, targetServer, targetDatabase)) {
      logger.error("Error in missing id or targetServer or targetDatabase:" + element);
    }
    return result;
  }