private void executeRepeat(RepeatElement repeatNode) { string repeatFor = repeatNode.getAttribute(AttributeConstants.TIMES).getValue().ToString(); Int32 repeatTimes = 0; try { Int32.TryParse(repeatFor, out repeatTimes); } catch (Exception) { throw new Exception("repeat time must be a number!"); } for (int i = 0; i < repeatTimes; i++) { IList <IElement> doNodes = repeatNode.DoNodes; runRecursive(doNodes); } }