public boolean fromElement(Element element) {
    boolean result = true;
    doSql = X.getFirstChildText(element, C.doSql, null);
    undoSql = X.getFirstChildText(element, C.undoSql, null);
    result = !U.hasNull(doSql, undoSql);
    if (!result) {
      logger.error("Error parsing <sql>:" + element);
    }
    return result;
  }