How to insert image using link from XML document in a HTML file?

saitbaba

New Member
I've got a XML file and I am making a HTML file from the document.I am grabbing information from the XML document at the moment using this\[code\]document.getElementById("name").innerHTML=xmlDoc.getElementsByTagName("url")[1].childNodes[0].nodeValue;\[/code\]For text in the HTML document I am then doing something like this \[code\]<p id = "url"></p>\[/code\]What I do not know if is the text of "url" is the URL of an image, how do I insert this URL into an HTML image tag so I can insert an image into my page?Cheers
 
Back
Top