Adding xml into html
Posted: Fri Jun 03, 2011 4:33 pm
I have some xml which I've received from an AJAX request. Say it looks like this:
In my html I have a div which we will call:
I want to insert the contents of <myDescription> into description to become:
I'm able to traverse through the xml response but I've been unable to insert the HTML contents of the node into my div. Any help would be appreciated.
Thanks,
Shawn
Code: Select all
<descriptions>
<myDescription>this is a description. Maybe their is some <b>html</b> in here.</myDescription>
</descriptions>
Code: Select all
<div id="description">
</div>
Code: Select all
<div id="description">
this is a description. Maybe their is some <b>html</b> in here.
</div>
Thanks,
Shawn