title: For loop to get Sequence of number for n number of nodes
body: <p>If i'm having 'n' number of nodes and i want to assign a number from starting of the node to 'n' number of nodes.
  example:</p>
  
  <pre><code>&lt;entity&gt;
    &lt;result&gt;
      &lt;seq&gt;1&lt;/seq&gt;
    &lt;/result&gt;
    &lt;result&gt;
      &lt;seq&gt;2&lt;/seq&gt;
    &lt;/result&gt;
    &lt;result&gt;
      &lt;seq&gt;3&lt;/seq&gt;
    &lt;/result&gt;
    ....
    ....
    ....
    &lt;result&gt;
      &lt;seq&gt;n&lt;/seq&gt;
    &lt;/result&gt;
  &lt;/entity&gt;
  </code></pre>