In javascript loop, I create xml as follows:
for (m = 0; m < t.length; m++) { var arr1 = t[m].split("\t"); s = "'<row dc= '" + arr1[0] + "' al='" + arr1[1] + "' msg='" + arr1[2] + "' />'"; alert(s);
I forgot about the variable t and all. by running this code, I get the s value in the following format:
<row dc = "abc" al="56" msg="dkaj" />
In the second iteration, it looks like this:
<row dc = "abwwc" al="56w" msg="dkajad" />
etc. to m<t.length . I want to join the list at each iteration. After I joined them, I have to do this:
<row dc = "abc" al="56" msg="dkaj" /><row dc = "abwwc" al="56w" msg="dkajad" /> and so on..
I tried to do this by joining the entry in the comments section, but didn't work for me. What am I doing wrong?
source share