XML File Parsing problem in Tizen SDK 2.3.0 for Wearable

XML File Parsing problem in Tizen SDK 2.3.0 for Wearable

BY 19 Nov 2014 Web Application Development
Hi, I am having problem in XML File Parsing. XML File is not being Recognized by the SDK. Also I have tried with html file, but didn’t get any workaround. Can anyone give me examples on that. I have tried with the following codes : while the file my_file.xml is put into the root folde, that is just above the “js” Folder. if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); console.log(“IE7+, Firefox”); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject(“Microsoft.XMLHTTP”); console.log(“IE7-“); } xmlhttp.open(“GET”,”../my_file.xml”,false); xmlhttp.send(); xmlDoc=xmlhttp.responseXML; var str = xmlDoc.getElementsByTagName(“p”)[0].childNodes[0].nodeValue; In the Console I am getting following error: TypeError: ‘null’ is not an object (evaluating ‘xmlDoc.getElementsByTagName’)
Written by