Windows 8 javascript html5 app not parsing xml

Ciera

New Member
My javascript XML parsing code works fine when I load it in firefox using local HTML & XML files, however when i build my app in visual studio 2012 (HTML5 javascript app) using the same code it fails to parse the XML file.\[code\]<script type="text/javascript">if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp = new XMLHttpRequest();}else {// code for IE6, IE5 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");}xmlhttp.open("GET", "pages/home/example.xml", false);xmlhttp.send();xmlDoc = xmlhttp.responseXML;//Contenttxt = xmlDoc.getElementsByTagName("Symbol")[0].childNodes[0].nodeValue;document.write(txt + " ");\[/code\]
 
Top