klocwork reports issues with concatenation in a loop
<p>String concatenation in a loop. I get this bug when i tested my project in klocwork. i am concatenating many strings  in loop is it a big mistake .</p>

<pre><code>for(int j=0;j&lt;nAttr;j++)
{
 builder = new StringBuilder();
 size=rnd.Next(1,10);
 for(int k=0; k&lt;size; k++)
 {
  ch = Convert.ToChar(Convert.ToInt32(26 * rnd.NextDouble() + 65)) ;
  if(ch=='[' || ch==']')
   j--;
  else
   builder.Append(ch); 
 }
 strXml+=" "+builder.ToString();//here the bug arises 
 strXml+="="+"\"";
</code></pre>

<p>i also found this bug  when i tested </p>

<p>Class/struct data member is hidden by a local variable  what does it mean  </p>

<pre><code>private void TraverseValues(XmlNode n,ArrayList arr)
{
 if(n.HasChildNodes )
 { 
  for(int i=0;i&lt;n.ChildNodes.Count;i++)
  {
   if(n.ChildNodes[i].Name=="#text")
    arr.Add(n.ChildNodes[i].InnerText );
   else 
    TraverseValues(n.ChildNodes[i],arr)//here the code arises
</code></pre>

<p>i completed my project .it works fine then i tested my product with klocwork it suggested these bugs .but i am not able to understand y it says it has critical error in code </p>
