Hi
I am doing work in and face problem in XML File .How can we create xml file with css and javascript?
XML in AJAX
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Anuja PawarRank #1,404 · 1.2K reputationPosted Nov 29, 2011, 12:02 AM EST
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; }