Hi everyone, I hope this is the right place to post this, as I have some basic and general questions about HTML and XML.

I used to do some simple HTML programming a long time ago, but the last decade I've mostly been doing Flash programming. Because of this JS is no stranger to me, but LOTS has happened in the HTML world since I last visited.

A client now wants me to convert parts of a Flash site to a Facebook app, namely job listings from an external XML feed. My first instinct is naturally to write a JavaScript to do all this, but are there other ways?

I know I must use CSS and DIVs instead of tables and such, but how do you replicate a DIV from a JS array and its length? Am I right to do all this in JS and output everything with document.write(), or is this bad practice?

I am grateful for any tips or points in the right direction