XML to HTML
XML to HTML
Out of context: Reply #11
- Started
- Last post
- 15 Responses
- fugged0
var myDiv = document.createElement("div");
myDiv.className = "entry";var p1 = document.createElement("p");
p1.className = "date";
p1.appendChild(document.createTe...var h3 = document.createElement("h3");
h3.appendChild(document.createTe...var p2 = document.createElement("p");
p1.appendChild(document.createTe...
var a = document.createElement("a");
a.setAttribute("href", x[i].getElementsByTagName("MOREL...
a.appendChild(document.createTex...
p2.appendChild(a);myDiv.appendChild(p1);
myDiv.appendChild(h3);
myDiv.appendChild(p2);you'll have to append myDiv to the document somewhere, but that should give you a start!