If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

doc.write and tag characters

Hello – I’m trying to create a script that takes values from a form and creates XML tags. For example, if I submit “att:int” and “3” the following document.write should execute on the web page

<att:int>1</att:int>
<att:int>2</att:int>
<att:int>3</att:int>

But i’m having trouble passing the tag like characters (i.e. </). I tried using \, I tried storing </ in a variable but whenever I submit the form, that </ doesn’t allow the script to achieve the intended outcome. I’ve attached a stripped down version of the code below, can’t get “closeTag” to write. Does anyone have a handy trick for this type of output or is javascript not built for this? Thanks for your time!