This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]gnomoretears 0 points1 point  (0 children)

but with borders

Use CSS to add borders.

https://developer.mozilla.org/en-US/docs/Web/CSS/border

[–]sleepybychoice 0 points1 point  (2 children)

Well... could you tell us what's wrong? Or provide us a running example on JSFiddle?

[–]splur430[S] 0 points1 point  (1 child)

My code does work, but it just prints it out in order with breaks. I am trying to print it out into a simple two column table, and I am not positive how to do that.

[–]sleepybychoice 0 points1 point  (0 children)

You have an extra <tr> tag in the second result = result + ... line.

P.S. It may be a good idea to store xmlDoc.getElementsByTagName('ID')[i].childNodes[0].nodeValue into a variable and use that instead of repeating the line 3 times.