basic xml setting value javascript

MorganM

New Member
Hi this seems to be a basic question but I can't get it right.I have an xml which looks like this:\[code\]<xml id="emailBodyXML"><email><body></body></email></xml>\[/code\]Now I have a variable, 'emailBody' that contains text values.I want to be able to put the value of the emailBody inside the body tag. For example emaiLBody="Hello". I want my xml to look like this:\[code\]<email><body>Hello</body></email>\[/code\]so how do i do it?
 
Back
Top