Hi
I am doing work in and face problem in XML File .How can we create xml file with css and javascript?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Anuja PawarPosted Nov 29, 2011, 5:02 AM
var Val;
function getVal(Val)
{
if (window.XMLHttpRequest)
{ xmlhttp=new XMLHttpRequest();
}
else {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }
xmlhttp.open("GET","Test.xml",false); xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
document.getElementById("main_body").innerHTML= xmlDoc.getElementsByTagName(Val)[0].childNodes[0].nodeValue; }