Hi,
I need xml data to be used in javascript.
When I embed the whole xml in html page then I am able to access xml.
But when when I use src tag I am unable to get xml file.
Code is below:
XML Data island in html page.
<xml id="xmlId" src="filters.xml" ></xml>
Code to access xml:
var xml = document.getElementById("xmlId");
var xmlDocument = xml.XMLDocument;
alert(xmlDocument.xml);
Can anyone please tell me why I am not able to get xml file by using src attribute in XML data island.